Skip to content

chore: github action for PRs and merge commits #1

chore: github action for PRs and merge commits

chore: github action for PRs and merge commits #1

Workflow file for this run

name: Go CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Set up Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
with:
go-version-file: ./go.mod
cache-dependency-path: ./go.sum
id: go
- name: Build
run: go build ./...
- name: Test
run: go test -v ./...