Skip to content

Update workflows and add a docker file #14

Update workflows and add a docker file

Update workflows and add a docker file #14

Workflow file for this run

name: CI
on:
push:
branches:
- main
paths-ignore:
- '.github/**'
pull_request:
branches:
- main
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.22.x
- run: go mod download
- run: go install github.com/a-h/templ/cmd/[email protected]
- run: make generate-templ
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54
skip-pkg-cache: true
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.22.x
- run: go mod download
- run: go install github.com/a-h/templ/cmd/[email protected]
- run: make generate-templ
- name: Test
run: go test -race ./...