-
-
Notifications
You must be signed in to change notification settings - Fork 12
65 lines (60 loc) · 1.41 KB
/
cli-test.yaml
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
64
65
---
name: Tests
on:
push:
branches:
- main
- develop
pull_request:
concurrency:
group: ci-cli-tests-${{ github.ref_name }}
cancel-in-progress: true
env:
GOPROXY: https://proxy.golang.org
FATHOM_SITE: ${{ vars.FATHOM_SITE }}
jobs:
full-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: yaml-lint
uses: ibiqlik/action-yamllint@v3
with:
file_or_dir: .github/workflows/ .golangci.yml .goreleaser.yaml
config_data: |
extends: default
rules:
new-line-at-end-of-file:
level: warning
trailing-spaces:
level: warning
line-length:
level: warning
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.21
- name: Download go modules
run: go mod download
- name: Run Lint
run: make lint
- name: Build
run: make build
- name: Run Tests
run: make test-coverage
other-os-build:
strategy:
matrix:
os: [windows-latest, macos-latest]
fail-fast: true
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.21
- name: Build
run: make build