Fixed workflow from previous commit #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22.x' | |
- name: Install dependencies | |
run: go mod download | |
- name: Build | |
run: go build -v | |
- name: Test Go | |
run: go test -v -json > GoTestResults.json | |
- name: Upload build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: libra | |
path: libra | |
- name: Upload Go test results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: go-test-results | |
path: GoTestResults.json |