-
Notifications
You must be signed in to change notification settings - Fork 21
60 lines (51 loc) · 1.5 KB
/
ci.yml
File metadata and controls
60 lines (51 loc) · 1.5 KB
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
51
52
53
54
55
56
57
58
59
60
name: build
on:
push:
branches:
- main
pull_request:
jobs:
job-test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
pull-requests: write
actions: write
steps:
- name: Check out source code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install fish shell (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y fish
- name: Install fish shell (macOS)
if: runner.os == 'macOS'
run: brew install fish
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
- name: Run lint
if: runner.os == 'Linux'
uses: reviewdog/action-golangci-lint@c76cceaaab89abe74e649d2e34c6c9adc26662d2 # v2.10.0
with:
fail_level: error
go_version_file: go.mod
cache: false
- name: Run gostyle
if: runner.os == 'Linux'
uses: k1LoW/gostyle-action@e1b847d37b3041c5fdb8b911bcf00b350779ca61 # v1.5.1
with:
config-file: .gostyle.yml
- name: Run tests
run: make ci
- name: Run octocov
if: runner.os == 'Linux'
uses: k1LoW/octocov-action@b3b6ee60482a667950f87553abf1df63217235d9 # v1.5.1