-
Notifications
You must be signed in to change notification settings - Fork 7
37 lines (37 loc) · 883 Bytes
/
code.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
name: code
on:
push:
branches:
- 'main'
pull_request:
paths:
- '**/*.go'
- '**/*.mod'
- '**/*.sum'
- '.github/workflows/*.yml'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # actions/checkout@v3
name: Checkout
with:
fetch-depth: 0
- uses: ./.github/actions/setup
name: Set up Go
- name: Test
run: make test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # actions/checkout@v3
name: Checkout
with:
fetch-depth: 0
- uses: ./.github/actions/setup
name: Set up Go
- uses: golangci/golangci-lint-action@v3
name: Lint
with:
version: latest
only-new-issues: true