-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 1.08 KB
/
build.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
name: Build
on: [push]
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- name: "Check out code"
uses: actions/checkout@v3
- name: "Set up Go"
uses: actions/setup-go@v3
with:
go-version: 1.20.x
- name: Test
# Set TERM variable to force color output
# Unset CI var because of https://github.com/muesli/termenv/commit/1111971edffa5f9ed2a38bd57f7e434b424f7b29
run: |
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d
./bin/task setup
TERM=xterm-256color CI= ./bin/task covTest
- name: build examples
run: ./bin/task examples
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./test/coverage.out
verbose: true
fail_ci_if_error: true
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.19.x
- uses: actions/checkout@v3
- name: lint
uses: golangci/golangci-lint-action@v3