-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (29 loc) · 886 Bytes
/
Copy pathci.yml
File metadata and controls
39 lines (29 loc) · 886 Bytes
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
name: Build and Test
on: [push, pull_request]
permissions:
contents: read
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check out code
uses: actions/checkout@v7
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version-file: "go.mod"
- name: Download dependencies
run: go mod download
- name: Run unit tests
run: go test -race ./...
- name: Build
run: go build -v ./cmd/flashduty
# Skill command-cards must stay in sync with the CLI tree (equivalent to
# `make check-cards`; invoked directly so it runs on the Windows runner,
# which has no make).
- name: Check skill command-cards
run: go run ./internal/cmd/skilldoc check