Skip to content

Commit 6c8b375

Browse files
JanHoefelmeyerJanHoefelmeyer
and
JanHoefelmeyer
authored
Older version (gocsaf#513)
* Add go_legacy.yml to check for compatibility with older go versions * Remove tests already done in go.yml * fix: Update actions, use stable/oldstable in actions --------- Co-authored-by: JanHoefelmeyer <hoefelmeyer.jan@gmail.com>
1 parent 03e4181 commit 6c8b375

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed

.github/workflows/go.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
build:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v4
1616

1717
- name: Set up Go
18-
uses: actions/setup-go@v2
18+
uses: actions/setup-go@v4
1919
with:
20-
go-version: 1.21.0
20+
go-version: 'stable'
2121

2222
- name: Build
2323
run: go build -v ./cmd/...

.github/workflows/go_legacy.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
paths:
6+
- "**.go"
7+
pull_request:
8+
paths:
9+
- "**.go"
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Set up Go
18+
uses: actions/setup-go@v4
19+
with:
20+
go-version: 'oldstable'
21+
22+
- name: Build
23+
run: go build -v ./cmd/...
24+
25+
- name: Tests
26+
run: go test -v ./...

0 commit comments

Comments
 (0)