Skip to content

Merge pull request #113 from specsnl/dependabot/docker/golang-1.27.0-… #143

Merge pull request #113 from specsnl/dependabot/docker/golang-1.27.0-…

Merge pull request #113 from specsnl/dependabot/docker/golang-1.27.0-… #143

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
unit-tests:
name: Unit tests
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version-file: go.mod
- name: Cache Go modules
uses: actions/cache@v6
with:
path: |
~/.cache/go/pkg/mod
~/.cache/go/build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Check go.mod is tidy
run: go mod tidy -diff
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.12
- name: Test
run: go test -race -count=1 ./...
- name: Build (smoke)
run: go build -o /dev/null .
integration-tests:
# Required by .github/rulesets/Main.json. Nothing carries the `integration`
# build tag yet, so this is a green no-op — the check has to exist for the
# ruleset to be satisfiable at all.
name: Integration tests
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version-file: go.mod
- name: Cache Go modules
uses: actions/cache@v6
with:
path: |
~/.cache/go/pkg/mod
~/.cache/go/build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Test
run: go test -race -count=1 -tags=integration ./...