Skip to content

Update 2026-03-31 15:44:45 UTC #65

Update 2026-03-31 15:44:45 UTC

Update 2026-03-31 15:44:45 UTC #65

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.25"
- name: Build
run: CGO_ENABLED=0 go build ./...
test:
runs-on: ubuntu-latest
env:
MONGODB_URI: ${{ secrets.MONGODB_URI }}
DATABASE_NAME: lightcms-test-${{ github.run_id }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.25"
- name: Run tests with coverage
run: |
CGO_ENABLED=0 go test ./... \
-coverprofile=coverage.out \
-covermode=atomic \
-timeout=900s \
-p 1
- name: Upload coverage to Codecov
if: always()
uses: codecov/codecov-action@v5
with:
files: coverage.out
token: ${{ secrets.CODECOV_TOKEN }}