-
Notifications
You must be signed in to change notification settings - Fork 551
47 lines (41 loc) · 994 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
40
41
42
43
44
45
46
47
name: Test
on:
pull_request:
push:
branches:
- main
- release/*
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: technote-space/[email protected]
with:
PATTERNS: |
**/*.go
**/*.plush
go.mod
go.sum
**/testdata/**
- uses: actions/setup-go@v5
if: env.GIT_DIFF
with:
go-version: "stable"
cache: true
cache-dependency-path: go.sum
- run: ./scripts/test-coverage
if: env.GIT_DIFF
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
if: env.GIT_DIFF
with:
file: ./coverage.txt
fail_ci_if_error: false
verbose: true