generated from Yandex-Practicum/go-musthave-metrics-tpl
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (28 loc) · 791 Bytes
/
statictest.yml
File metadata and controls
33 lines (28 loc) · 791 Bytes
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
name: go vet test
on:
pull_request:
push:
branches:
- main
jobs:
statictest:
runs-on: ubuntu-latest
container: golang:1.23
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) ./...