-
Notifications
You must be signed in to change notification settings - Fork 61
63 lines (55 loc) · 1.39 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
56
57
58
59
60
61
62
63
---
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.19', '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 v2
shell: bash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release -R docker/compose download -p docker-compose-linux-x86_64
mv -f docker-compose-linux-x86_64 docker-compose
sudo mv /usr/local/bin/docker-compose /usr/local/bin/docker-compose-v2
sudo install docker-compose /usr/local/bin/
docker-compose --version
- run: task test
tets-summary:
name: Test
needs: test
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- run: echo "All good!"