bingo/.gitea/workflows/test-n-build.yaml
Seraphim R. Pardee f3e1792287
All checks were successful
Test \'N Build / test (push) Successful in 1m39s
Test \'N Build / build (push) Successful in 1m21s
Use patched upload-artifact action.
2024-09-20 00:20:31 -04:00

36 lines
980 B
YAML

name: Test \'N Build
run-name: ${{ gitea.actor }} is testing... \'n building.
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v4
- name: setup go 1.23.1 and fetch deps
uses: actions/setup-go@v5
with:
go-version: '1.23.1'
cache-dependency-path: go.sum
- name: do the actual test thing
run: go test -json > testresults-1.23.1.json
- name: upload test results
uses: christopherhx/gitea-upload-artifact@v4
with:
name: go-results-1.23.1
path: testresults-1.23.1.json
build:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v4
- name: setup go 1.23.1 and fetch deps
uses: actions/setup-go@v5
with:
go-version: '1.23.1'
cache-dependency-path: go.sum
- name: do the actual build thing
run: go build -v ./...