mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-25 15:57:05 +00:00
Nearly all the github actions we rely on have increased their major version, at least to update the Node.js version they run on, since the previous one is being deprecated and will eventually become unsupported. So this patch updates all the versions of the github actions we use.
40 lines
859 B
YAML
40 lines
859 B
YAML
name: "gotests"
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master", "next" ]
|
|
pull_request:
|
|
# The branches below must be a subset of the branches above
|
|
branches: [ "master", "next" ]
|
|
schedule:
|
|
- cron: '29 21 * * 6'
|
|
|
|
jobs:
|
|
oldest_supported:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
- name: normal tests
|
|
run: go test ./...
|
|
- name: race tests
|
|
run: go test -race ./...
|
|
|
|
latest:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version: "1.x"
|
|
check-latest: true
|
|
- name: normal tests
|
|
run: go test ./...
|
|
- name: race tests
|
|
run: go test -race ./...
|
|
|