Skip to content

Initial commit

Initial commit #2

Workflow file for this run

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/release-downloader@v1.8
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 yamlvalidator
- name: Run autotest suite
run: |
devopsmastertest \
-test.v \
-test.run=^TestLesson02$ \
-binary-path=./yamlvalidator