Skip to content

Commit 4f060cc

Browse files
committed
ci: add GitHub Actions workflows for tests and SLSA provenance
1 parent 4eb92e2 commit 4f060cc

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

.github/workflows/slsa.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: SLSA Provenance
2+
3+
on:
4+
release:
5+
types: [ created ]
6+
7+
permissions:
8+
id-token: write
9+
contents: read
10+
11+
jobs:
12+
provenance:
13+
uses: slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@v2.1.0
14+
with:
15+
upload-assets: true

.github/workflows/test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Run tests
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
push:
8+
branches: [ "main" ]
9+
pull_request:
10+
branches: [ "main" ]
11+
12+
jobs:
13+
test:
14+
name: Run tests
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Set up Go
23+
uses: actions/setup-go@19bb51245e9c80abacb2e91cc42b33fa478b8639
24+
with:
25+
go-version: '1.25.7'
26+
27+
- name: Install dependencies
28+
run: go mod download
29+
30+
- name: Run tests
31+
run: go test ./internal/... ./epp/... ./cmd/...

0 commit comments

Comments
 (0)