Skip to content

chore(deps): bump actions/checkout from 6.0.2 to 6.0.3 #198

chore(deps): bump actions/checkout from 6.0.2 to 6.0.3

chore(deps): bump actions/checkout from 6.0.2 to 6.0.3 #198

Workflow file for this run

# .github/workflows/build-go.yml
name: Build and Test Go Application
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-and-test:
name: Build and Test
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: '1.26.3' # GOVERSION
- name: Cache Go modules
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
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 download
- name: Build the application
run: go build -v ./...
- name: Run tests
run: go test -coverprofile=coverage.txt -covermode=atomic ./...