Skip to content

Merge pull request #21 from ex0rcist/iter23 #78

Merge pull request #21 from ex0rcist/iter23

Merge pull request #21 from ex0rcist/iter23 #78

Workflow file for this run

name: go vet test
on:
pull_request:
push:
branches:
- main
jobs:
statictest:
runs-on: ubuntu-latest
container: golang:1.22
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Download statictest binary
uses: robinraju/release-downloader@v1.8
with:
repository: Yandex-Practicum/go-autotests
latest: true
fileName: statictest
out-file-path: .tools
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup autotest binary
run: |
chmod -R +x $GITHUB_WORKSPACE/.tools/statictest
mv $GITHUB_WORKSPACE/.tools/statictest /usr/local/bin/statictest
- name: Run statictest
run: |
go vet -vettool=$(which statictest) ./...