From f9c116f2eb452dd411567e3334559446f0d62982 Mon Sep 17 00:00:00 2001 From: Eduardo <100472175@alumnos.uc3m.es> Date: Fri, 2 Aug 2024 04:34:49 +0200 Subject: [PATCH] Update go.yml --- .github/workflows/go.yml | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 0b443f3..6058b87 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,28 +1,25 @@ -# 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: Build Go Program on: push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] + branches: + - main # Change this to the branch you want to build on push jobs: - build: - runs-on: ubuntu-latest + runs-on: ubuntu-latest # Use the latest Ubuntu runner + steps: - - uses: actions/checkout@v4 + - name: Checkout code + uses: actions/checkout@v3 - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: '1.20' + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: '1.24' # Specify the Go version you want to use - - name: Build - run: go build -v ./... + - name: Install dependencies + run: go mod tidy - - name: Test - run: go test -v ./... + - name: Build + run: go build -v ./... # Adjust the build command if needed