-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 880 Bytes
/
go.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
name: Build and Test
on:
push:
branches:
- 'main'
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: ["stable"]
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: docker-compose
run: docker compose -f deployment/docker-compose.yml up -d
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.version }}
cache: true
- name: Install Task
uses: arduino/setup-task@v2
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: generate and test
run: |
task
- uses: codecov/codecov-action@v4
with:
files: ./coverage.out.final # optional
token: ${{ secrets.CODECOV_TOKEN }}