-
Notifications
You must be signed in to change notification settings - Fork 29
40 lines (32 loc) · 934 Bytes
/
test.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
# name of the action
name: test
# trigger on pull_request or push events
on:
pull_request:
push:
# pipeline to execute
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: clone
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: install go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
# use version from go.mod file
go-version-file: "go.mod"
cache: true
check-latest: true
- name: test
run: |
make test
- name: test jsonschema
run: |
go install github.com/santhosh-tekuri/jsonschema/cmd/[email protected]
make test-jsonschema
- name: coverage
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage.out