-
Notifications
You must be signed in to change notification settings - Fork 7
56 lines (48 loc) · 1.27 KB
/
checks.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
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Checks
on: [pull_request]
jobs:
checks:
permissions:
checks: write
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: black-desk/checks@master
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable
cache: true
cache-dependency-path: ${{github.workspace}}/go.sum
- name: Upgrade
run: |
sudo apt update &&
sudo apt install systemd util-linux
- name: Build & test (debug mode)
run: |
make GOTAGS=debug
make GOTAGS=debug test
- name: Build & test
run: |
make
make test
- name: Coverage report
run: |
export COVERAGE_REPORT=/tmp/io.github.black-desk.cgtproxy-test/coverage.txt &&
echo '```' > $GITHUB_STEP_SUMMARY &&
make COVERAGE_REPORT=$COVERAGE_REPORT test-coverage &&
cat $COVERAGE_REPORT >> $GITHUB_STEP_SUMMARY &&
echo '```' >> $GITHUB_STEP_SUMMARY
pass:
name: Pass
needs: [checks, build-and-test]
runs-on: ubuntu-latest
steps:
- name: Placeholder
run: |
true