-
Notifications
You must be signed in to change notification settings - Fork 60
55 lines (47 loc) · 1.02 KB
/
testing.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
48
49
50
51
52
53
54
55
---
name: Testing
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
release:
types:
- created
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: ./go.mod
- uses: golangci/golangci-lint-action@v3
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
go-version: [ '1.20', '1.21' ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Install Task
uses: arduino/setup-task@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install docker compose
uses: docker/setup-compose-action@v1
- run: task test
tets-summary:
name: Test
needs: test
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- run: echo "All good!"