2024-09-20 00:33:32 -04:00
|
|
|
name: test
|
|
|
|
run-name: ${{ gitea.actor }} is testing.
|
2024-09-19 23:52:20 -04:00
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
2024-09-19 23:54:41 -04:00
|
|
|
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
|
2024-09-20 00:20:31 -04:00
|
|
|
uses: christopherhx/gitea-upload-artifact@v4
|
2024-09-19 23:54:41 -04:00
|
|
|
with:
|
|
|
|
name: go-results-1.23.1
|
2024-09-20 00:33:32 -04:00
|
|
|
path: testresults-1.23.1.json
|