-
Notifications
You must be signed in to change notification settings - Fork 10
39 lines (36 loc) · 938 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: Test
concurrency:
# for PR's cancel the running task, if another commit is pushed
group: ${{ github.workflow }} ${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
on:
push:
branches:
- main
pull_request:
types:
- opened
- ready_for_review
- synchronize
jobs:
go-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '^1.20'
- name: Set up ginkgo
run: go install github.com/onsi/ginkgo/v2/ginkgo
- name: Run Tests
run: make test
- name: Run tests with Coverage
run: make coverage
- name: Upload Code Coverage
uses: codecov/codecov-action@v4
with:
name: codecov
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false