Skip to content

Commit bfec893

Browse files
committed
use setup-toml-test
1 parent 4b439bf commit bfec893

File tree

2 files changed

+35
-45
lines changed

2 files changed

+35
-45
lines changed

.github/workflows/cifuzz.yml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,23 @@
1-
name: CIFuzz
2-
on: [pull_request]
1+
name: 'CIFuzz'
2+
on: ['pull_request']
33
jobs:
44
Fuzzing:
5-
runs-on: ubuntu-latest
5+
runs-on: 'ubuntu-latest'
66
steps:
7-
- name: Build Fuzzers
8-
id: build
9-
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
7+
- id: 'build'
8+
uses: 'google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master'
109
with:
1110
oss-fuzz-project-name: 'burntsushi-toml'
1211
dry-run: false
13-
language: go
14-
- name: Run Fuzzers
15-
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
12+
language: 'go'
13+
- uses: 'google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master'
1614
with:
1715
oss-fuzz-project-name: 'burntsushi-toml'
1816
fuzz-seconds: 300
1917
dry-run: false
20-
language: go
21-
- name: Upload Crash
22-
uses: actions/upload-artifact@v4
18+
language: 'go'
19+
- uses: 'actions/upload-artifact@v4'
2320
if: failure() && steps.build.outcome == 'success'
2421
with:
25-
name: artifacts
26-
path: ./out/artifacts
22+
name: 'artifacts'
23+
path: './out/artifacts'

.github/workflows/test.yml

Lines changed: 24 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,24 @@
1-
{
2-
"name": "go test",
3-
"on": ["push", "pull_request"],
4-
"jobs": {
5-
"test": {
6-
"strategy": {
7-
"matrix": {
8-
"go-version": ["1.18.x", "1.24.x"],
9-
"os": ["ubuntu-latest", "macos-latest", "windows-latest"]
10-
}
11-
},
12-
"runs-on": "${{ matrix.os }}",
13-
"env": {"GOPROXY": "direct"},
14-
"steps": [{
15-
"name": "Install Go",
16-
"uses": "actions/setup-go@v4",
17-
"with": {"go-version": "${{ matrix.go-version }}"}
18-
}, {
19-
"name": "Checkout code",
20-
"uses": "actions/checkout@v4"
21-
}, {
22-
"name": "Test",
23-
"run": "go test -race ./..."
24-
}, {
25-
"name": "Test on 32bit",
26-
"if": "runner.os == 'Linux'",
27-
"run": "GOARCH=386 go test ./..."
28-
}]
29-
}
30-
}
31-
}
1+
name: 'go test'
2+
on: ['push', 'pull_request']
3+
jobs:
4+
test:
5+
strategy:
6+
matrix:
7+
go-version: ['1.21.x', '1.24.x']
8+
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
9+
runs-on: ${{ matrix.os }}
10+
steps:
11+
- uses: 'actions/setup-go@v4'
12+
with:
13+
go-version: ${{ matrix.go-version }}
14+
- uses: 'actions/checkout@v4'
15+
- uses: 'toml-lang/setup-toml-test@main'
16+
with:
17+
decoder: 'toml-test-decoder'
18+
encoder: 'toml-test-encoder'
19+
mainBranch: 'master'
20+
version: 'main'
21+
- run: |
22+
go build ./cmd/toml-test-decoder
23+
go build ./cmd/toml-test-encoder
24+
go test -race ./...

0 commit comments

Comments
 (0)