Skip to content

Commit

Permalink
Older version (#513)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
JanHoefelmeyer and JanHoefelmeyer authored Dec 7, 2023
1 parent 03e4181 commit 6c8b375
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.21.0
go-version: 'stable'

- name: Build
run: go build -v ./cmd/...
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/go_legacy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Go

on:
push:
paths:
- "**.go"
pull_request:
paths:
- "**.go"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 'oldstable'

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

- name: Tests
run: go test -v ./...

0 comments on commit 6c8b375

Please sign in to comment.