Skip to content

Commit f615258

Browse files
committed
ci: Add tests back
1 parent 2fbc0d5 commit f615258

4 files changed

Lines changed: 52 additions & 24 deletions

File tree

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: [kkrypt0nn]
2+
custom: ["https://buymeacoffee.com/kkrypt0nn"]

.github/workflows/ci.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Spaceflake CI (Lint & Test)
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
lint-test:
12+
name: Lint & Test
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout source code
16+
uses: actions/checkout@v4
17+
- name: Set up Go
18+
uses: actions/setup-go@v5
19+
with:
20+
go-version: 1.24
21+
- name: Lint
22+
uses: golangci/golangci-lint-action@v7
23+
with:
24+
version: latest
25+
- name: Test
26+
run: go test -v ./...
27+
build:
28+
name: Build for ${{ matrix.target.goos }}/${{ matrix.target.goarch }}
29+
runs-on: ubuntu-latest
30+
needs: [lint-test]
31+
strategy:
32+
matrix:
33+
target:
34+
- { goos: linux, goarch: amd64 }
35+
- { goos: linux, goarch: arm64 }
36+
- { goos: darwin, goarch: amd64 }
37+
- { goos: darwin, goarch: arm64 }
38+
- { goos: windows, goarch: amd64 }
39+
- { goos: windows, goarch: arm64 }
40+
- { goos: android, goarch: arm64 }
41+
steps:
42+
- name: Checkout source code
43+
uses: actions/checkout@v4
44+
- name: Set up Go
45+
uses: actions/setup-go@v5
46+
with:
47+
go-version: 1.24
48+
- name: Build
49+
run: GOOS=${{ matrix.target.goos }} GOARCH=${{ matrix.target.goarch }} go build -v ./...

.github/workflows/go-test.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/kkrypt0nn/spaceflake
22

3-
go 1.19
3+
go 1.24

0 commit comments

Comments
 (0)