Davide Oddone 673b33936c
All checks were successful
Build / gobuild (push) Successful in 1m29s
Trying to test every .go file
2023-12-02 12:28:21 +00:00

28 lines
956 B
YAML

name: Build
on: [push]
jobs:
gobuild:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.21.x'
- name: Build
run: go build -v ./*/*.go
- name: Display Go version
run: go version
- name: List files in the repository
run: |
ls ${{ github.workspace }}
- name: Test with Go
run: go test ./*/*.go -json > TestResults-${{ matrix.go-version }}.json
- name: Upload Go test results
uses: actions/upload-artifact@v3
with:
name: Go-results-${{ matrix.go-version }}
path: TestResults-${{ matrix.go-version }}.json
- run: echo "This job's status is ${{ job.status }}."