Skip to content

Commit 2c1be93

Browse files
authored
Merge pull request #1 from applejag/feature/ci
2 parents f71fc12 + a57d898 commit 2c1be93

4 files changed

Lines changed: 80 additions & 1 deletion

File tree

.github/workflows/ci.yml

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

.github/workflows/labeler.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-FileCopyrightText: 2026 Kalle Fagerberg
2+
#
3+
# SPDX-License-Identifier: CC0-1.0
4+
15
name: "Pull Request Labeler"
26
on:
37
# Using "pull_request_target" is generally a security hole, but only

REUSE.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55
version = 1
66

77
[[annotations]]
8-
path = "**/*.go"
8+
path = [
9+
"**/*.go",
10+
"**/*.proto",
11+
"assets/*.png",
12+
"assets/*.pxo",
13+
]
914
SPDX-FileCopyrightText = "2026 Kalle Fagerberg"
1015
SPDX-License-Identifier = "MIT"
1116

assets/fonts/pico8_4x6.fff.license

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
SPDX-FileCopyrightText: PICO-8
2+
13
SPDX-License-Identifier: CC0-1.0
24

35
Downloaded from https://fonts.fireflyzero.com/ascii

0 commit comments

Comments
 (0)