-
Notifications
You must be signed in to change notification settings - Fork 10
50 lines (50 loc) · 1.11 KB
/
main.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
38
39
40
41
42
43
44
45
46
47
48
49
50
name: main
on:
push:
branches:
- '**'
jobs:
test:
permissions:
contents: read
runs-on: ubuntu-latest
defaults:
run:
shell: bash -eu -o pipefail {0}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup go
id: setup-go
uses: actions/setup-go@v4
with:
go-version-file: "go.mod"
- name: Download dependencies
if: ${{ steps.setup-go.outputs.cache-hit != 'true' }}
run: |
go mod download
- name: Run test
run: |
make test
reviewdog:
permissions:
contents: read
runs-on: ubuntu-latest
defaults:
run:
shell: bash -eu -o pipefail {0}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup go
id: setup-go
uses: actions/setup-go@v4
with:
go-version: 1.12-stretch
- name: Download dependencies
if: ${{ steps.setup-go.outputs.cache-hit != 'true' }}
run: |
go mod download
- name: Run reviewdog
run: |
make reviewdog