9185e1de89
CI / Test and build (pull_request) Successful in 24s
Pushes and pull requests had no automated test or build on Gitea. A CI workflow matching the existing Go module runs go test -race and go build on master, develop, and pull requests. Fixes #7
29 lines
446 B
YAML
29 lines
446 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- develop
|
|
pull_request:
|
|
|
|
jobs:
|
|
ci:
|
|
name: Test and build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: go.mod
|
|
cache: true
|
|
|
|
- name: Test
|
|
run: go test -race ./...
|
|
|
|
- name: Build
|
|
run: go build ./...
|