Skip to content

Commit 54c4fe3

Browse files
author
Kalle Fagerberg
committed
add ci
1 parent f71fc12 commit 54c4fe3

1 file changed

Lines changed: 73 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: ci
2+
on:
3+
push:
4+
branches:
5+
- "main"
6+
pull_request:
7+
8+
permissions: {}
9+
10+
jobs:
11+
zizmor:
12+
name: Run zizmor 🌈
13+
runs-on: ubuntu-latest
14+
permissions:
15+
security-events: write
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
19+
with:
20+
persist-credentials: false
21+
22+
- name: Run zizmor 🌈
23+
uses: zizmorcore/zizmor-action@135698455da5c3b3e55f73f4419e481ab68cdd95 # v0.4.1
24+
25+
reuse:
26+
name: REUSE Compliance Check
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v6
30+
with:
31+
persist-credentials: false
32+
- uses: fsfe/reuse-action@676e2d560c9a403aa252096d99fcab3e1132b0f5 # v6.0.0
33+
34+
test:
35+
runs-on: ${{ matrix.os }}
36+
strategy:
37+
fail-fast: false
38+
matrix:
39+
os:
40+
- ubuntu-latest
41+
- macOS-latest
42+
- windows-latest
43+
permissions:
44+
contents: read
45+
steps:
46+
- name: checkout
47+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
48+
with:
49+
persist-credentials: false
50+
51+
- name: setup go
52+
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # 6.2.0
53+
with:
54+
go-version-file: go.mod
55+
56+
- name: install gotestsum
57+
run: go install gotest.tools/gotestsum@latest
58+
59+
- name: run gotestsum
60+
env:
61+
FORCE_COLOR: "true"
62+
run: gotestsum ./...
63+
64+
- uses: jdx/mise-action@c53b9236f0b3370f31520f8b142f141256d839c6 # v3.6.0
65+
with:
66+
install_args: aqua:tinygo-org/tinygo protoc protoc-gen-go github:firefly-zero/firefly-cli
67+
68+
- name: try build
69+
run: |
70+
mise run build
71+
72+
- name: Git diff
73+
run: git diff --exit-code

0 commit comments

Comments
 (0)