Skip to content

feat!: replace books and submit with a single sync use-case #4

feat!: replace books and submit with a single sync use-case

feat!: replace books and submit with a single sync use-case #4

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
# Least privilege: jobs only need to read the repo contents.
permissions:
contents: read
# Cancel superseded runs for the same ref.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-test:
name: Build & Test
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: true
- name: Build
run: go build ./...
- name: Test
run: go test ./... -race -cover
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: true
- name: golangci-lint
# Pinned to a full commit SHA (supply-chain safety); the .golangci.yml
# config is schema "version: 2", which requires golangci-lint v2.
uses: golangci/golangci-lint-action@82606bf257cbaff209d206a39f5134f0cfbfd2ee # v9.2.1
with:
version: v2.12.2