Skip to content

feat: added CI/CD pipeline. Deploys to Google Cloud Run. #3

feat: added CI/CD pipeline. Deploys to Google Cloud Run.

feat: added CI/CD pipeline. Deploys to Google Cloud Run. #3

Workflow file for this run

name: ci
on:
pull_request:
branches: [main]
jobs:
tests:
name: tests
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.22"
- name: Run Tests
run: go test ./... -cover
- name: Install gosec
run: go install github.com/securego/gosec/v2/cmd/gosec@latest
- name: Security Check
run: gosec ./...
style:
name: style
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
- name: Check Format
run: test -z $(go fmt ./...)
- name: Install StaticCheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Lint
run: staticcheck ./...