Skip to content

Commit

Permalink
hopefully fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zeusssz authored Sep 12, 2024
1 parent 9fd7b73 commit b9167f5
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This workflow will build a golang project
# This workflow will build a Golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Go
Expand All @@ -10,19 +10,32 @@ on:
branches: [ "main" ]

jobs:

build:
runs-on: ubuntu-latest

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

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'

- name: Cache Go modules
uses: actions/cache@v4
with:
path: |
src/go/pkg/mod
src/go.sum
key: ${{ runner.os }}-go-${{ hashFiles('src/**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Build
working-directory: src
run: go build -v ./...

- name: Test
working-directory: src
run: go test -v ./...

0 comments on commit b9167f5

Please sign in to comment.