update content #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: autotests | |
on: | |
pull_request: | |
push: | |
jobs: | |
autotest: | |
runs-on: ubuntu-latest | |
container: golang:1.22 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Download autotests binaries | |
uses: robinraju/[email protected] | |
with: | |
repository: Yandex-Practicum/go-autotests | |
latest: true | |
fileName: "*" | |
out-file-path: .tools | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup autotest binary | |
run: | | |
chmod -R +x $GITHUB_WORKSPACE/.tools | |
mv $GITHUB_WORKSPACE/.tools/devopsmastertest /usr/local/bin/devopsmastertest | |
- name: Build script binary | |
run: | | |
go build -buildvcs=false -o srvmonitor | |
- name: Run autotest suite | |
run: | | |
devopsmastertest \ | |
-test.v \ | |
-test.run=^TestLesson01$ \ | |
-binary-path=./srvmonitor | |