Skip to content

Commit

Permalink
Update go.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea-Cavallo authored Aug 17, 2024
1 parent 021c2f1 commit 8f9c752
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# 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
name: Go Build and Test

on:
push:
Expand All @@ -10,19 +7,33 @@ on:
branches: [ "master" ]

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.23'

- name: Check Go version
run: go version

- name: Clean Go module cache
run: go clean -modcache

- name: Tidy up Go modules
run: go mod tidy

- name: Clean up Go build
run: go clean -cache -modcache -i -r

- name: Build
run: go build -v ./...

- name: Test
- name: Run tests
run: go test -v ./...

0 comments on commit 8f9c752

Please sign in to comment.