Skip to content

feat: disable actions #7

feat: disable actions

feat: disable actions #7

Workflow file for this run

name: Go Test on PR to Main
on:
pull_request:
branches:
- main
- production
push:
branches:
- main
- production
workflow_dispatch:
jobs:
go-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.22
- name: Restore Go cache
uses: actions/cache/restore@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run tests
run: go test ./...
- name: Save Go cache
uses: actions/cache/save@v4
if: always()
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}