Files
chasquid/.github/workflows/gotests.yml
Alberto Bertogli 6ff08b1ec2 ci: Rename master branch to main
These days `main` is more common, and I find it more intuitive.
2024-04-19 18:57:30 +01:00

40 lines
855 B
YAML

name: "gotests"
on:
push:
branches: [ "main", "next" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main", "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 ./...