Skip to content

Commit

Permalink
go ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedbham committed Jul 29, 2024
1 parent 86659b5 commit fbc9042
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build-and-test-go-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Upload Go test results

on: [push]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.19', '1.20', '1.21.x' ]

steps:
- uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}

- name: Install dependencies
run: go get .

- name: Test with Go
run: go test -json > TestResults-${{ matrix.go-version }}.json

- name: Upload Go test results
uses: actions/upload-artifact@v4
with:
name: Go-results-${{ matrix.go-version }}
path: TestResults-${{ matrix.go-version }}.json

0 comments on commit fbc9042

Please sign in to comment.