Skip to content

Commit

Permalink
Update go.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Astrak00 authored Aug 2, 2024
1 parent b635d91 commit f9c116f
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f9c116f

Please sign in to comment.