Skip to content

Commit

Permalink
fix: checkout versions
Browse files Browse the repository at this point in the history
  • Loading branch information
TanishqSingla committed Oct 18, 2024
1 parent d4fb60a commit 53621c6
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,34 @@
name: Go Test

on:
pull_request:
branches: [master]
branches:
- master

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v5
uses: actions/checkout@v3

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

- name: Cache Go modules
uses: actions/cache@v3
with:
go-version: '1.23.0'
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install dependencies
run: go mod tidy
run: |
go mod download # Download modules
- name: Run tests
run: go test -v ./...

0 comments on commit 53621c6

Please sign in to comment.