33 lines
590 B
YAML
33 lines
590 B
YAML
name: Go CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version: '1.25'
|
|
|
|
- name: Install dependencies
|
|
run: go mod download
|
|
|
|
- name: Create dummy .env file
|
|
run: |
|
|
echo "GOOGLE_CLIENT_ID=dummy_client_id" > .env
|
|
echo "GOOGLE_CLIENT_SECRET=dummy_client_secret" >> .env
|
|
|
|
- name: Build
|
|
run: go build -v ./...
|
|
|
|
- name: Test
|
|
run: go test -v ./...
|