-
Notifications
You must be signed in to change notification settings - Fork 78
42 lines (33 loc) · 881 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
name: Testing
on:
push:
branches: [ "master", "develop" ]
pull_request:
branches: [ "master", "develop" ]
jobs:
tests:
name: Test on go ${{ matrix.go_version }}
strategy:
matrix:
go_version: [
"1.19",
"1.20",
"1.21",
]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Redis Server in GitHub Actions
uses: supercharge/[email protected]
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go_version }}
- name: Test
run: go test -v $(go list ./... | grep -v github.com/libi/dcron/e2e)
- name: Test E2E
run: go test -v ./e2e
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}