-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (43 loc) · 1.2 KB
/
ci.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
name: CI build
on:
pull_request:
push:
branches:
- main
jobs:
check-links:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check all links in *.md files
id: lychee
uses: lycheeverse/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: >-
-v -n "*.md" "**/*.md"
--exclude "https://ingest.us0.signalfx.com.*"
--exclude "http://localhost*"
- name: Fail if there were link errors
run: exit ${{ steps.lychee.outputs.exit_code }}
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.18
- name: Build and test
run: |
echo "RUNNING TESTS"
mkdir ~/testresults
(cd /tmp; GO111MODULE=on go install gotest.tools/gotestsum@latest)
CGO_ENABLED=0 gotestsum --format short-verbose --junitfile ~/testresults/unit.xml --raw-command -- go test --json -p 4 ./...
echo "BUILDING"
make