Skip to content

Commit

Permalink
Create go-test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
damongolding committed Jul 26, 2024
1 parent 50c6bbd commit 20afbed
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Go Test

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.22.5" # Specify the Go version you want to use

- name: Get dependencies
run: go mod download

- name: Run tests
run: |
mkdir -p test-results
go test -v ./... > test-results/test.log
- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: go-test-results
path: test-results/test.log

0 comments on commit 20afbed

Please sign in to comment.