-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 982 Bytes
/
go.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: Go
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "**" ]
permissions:
contents: write
pull-requests: write
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '^1.23.0'
- name: golangci-lint
uses: golangci/golangci-lint-action@v6.1.1
with:
version: v1.61.0
coverage:
name: coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- name: generate test coverage
run: bash ./scripts/test.sh
- name: check test coverage
uses: vladopajic/go-test-coverage@v2.10.2
with:
config: ./.github/.testcoverage.yml
local-prefix: github.com/joshraphael/go-retroachievements
git-token: ${{ github.ref_name == 'main' && secrets.GITHUB_TOKEN || '' }}
git-branch: badges