-
Notifications
You must be signed in to change notification settings - Fork 113
43 lines (40 loc) · 1.01 KB
/
verify.yaml
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
41
42
43
name: Verify
on:
push:
tags-ignore:
- '**'
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
verify:
name: Verify
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
path: go/src/github.com/shipwright-io/build
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: '1.20.x'
cache: true
check-latest: true
cache-dependency-path: go/src/github.com/shipwright-io/build
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
working-directory: go/src/github.com/shipwright-io/build
args: --timeout=10m
- name: Install Counterfeiter
run: |
make -C go/src/github.com/shipwright-io/build install-counterfeiter
- name: Run verify-generate
run: |
export GOPATH="${GITHUB_WORKSPACE}"/go
make -C $GOPATH/src/github.com/shipwright-io/build verify-generate