Skip to content

add ci to backend

add ci to backend #2

Workflow file for this run

name: Golang Validation
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
verify-and-build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Download dependencies
run: go mod download
- name: Verify dependencies are synced
run: |
go mod tidy
git diff --exit-code -- go.mod go.sum
- name: Build all packages
run: go build ./...
- name: Run unit tests
run: go test ./...