-
Notifications
You must be signed in to change notification settings - Fork 22
75 lines (71 loc) · 1.92 KB
/
ci.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: ci
on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:
jobs:
check-links:
runs-on: ubuntu-24.04
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- uses: lycheeverse/[email protected]
id: lychee
with:
args: >-
-v -n "*.md" "**/*.md"
--exclude "https://ingest.us0.signalfx.com.*"
--exclude "http://localhost*"
- name: fail for link errors
run: exit ${{ steps.lychee.outputs.exit_code }}
goyek:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
run-script: ./goyek.sh -v ci
- os: windows-2022
run-script: .\goyek.ps1 -v -skip-docker ci
- os: macos-14
run-script: ./goyek.sh -v -skip-docker ci
runs-on: ${{ matrix.os }}
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
go-version: '1.23'
check-latest: true
- run: ${{ matrix.run-script }}
- uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
files: ./coverage.out
flags: ${{ runner.os }}
compatibility-test:
strategy:
matrix:
go-version:
- '1.22'
- '1.23'
os: [ubuntu-20.04, windows-2022, macos-14]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
go-version: ${{ matrix.go-version }}
check-latest: true
- run: make test-short
compatibility-check:
runs-on: ubuntu-24.04
if: ${{ always() }}
needs: [compatibility-test]
steps:
- name: Test if compatibility-test passed
run: |
echo ${{ needs.compatibility-test.result }}
test ${{ needs.compatibility-test.result }} == "success"