-
Notifications
You must be signed in to change notification settings - Fork 6
41 lines (34 loc) · 897 Bytes
/
ci.yml
File metadata and controls
41 lines (34 loc) · 897 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
40
41
name: CI
on:
push:
branches: [master, main]
pull_request:
jobs:
test:
name: test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.25'
cache: true
- name: go vet
run: go vet ./...
- name: go test
run: go test ./... -race -count=1
- name: build
run: go build ./cmd/stacklit
- name: smoke test (generate)
run: go run ./cmd/stacklit generate --quiet
shell: bash
- name: smoke test (export markdown)
run: |
go run ./cmd/stacklit export -o stacklit-ci.md
test -s stacklit-ci.md
head -1 stacklit-ci.md | grep -q '^# '
shell: bash