-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (32 loc) · 943 Bytes
/
autotest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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