Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/actionlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
paths:
.github/workflows/**/*.{yml,yaml}:
ignore:
- 'shellcheck reported issue in this script: SC1083:.+'
43 changes: 22 additions & 21 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
---
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
time: '04:00'
timezone: Europe/Copenhagen
open-pull-requests-limit: 10
- package-ecosystem: gomod
directory: "/"
schedule:
interval: daily
time: '04:00'
timezone: Europe/Copenhagen
open-pull-requests-limit: 10
- package-ecosystem: docker
directory: "/"
schedule:
interval: daily
time: '04:00'
timezone: Europe/Copenhagen
open-pull-requests-limit: 10
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
time: '04:00'
timezone: Europe/Copenhagen
open-pull-requests-limit: 10
- package-ecosystem: gomod
directory: "/"
schedule:
interval: daily
time: '04:00'
timezone: Europe/Copenhagen
open-pull-requests-limit: 10
- package-ecosystem: docker
directory: "/"
schedule:
interval: daily
time: '04:00'
timezone: Europe/Copenhagen
open-pull-requests-limit: 10
92 changes: 42 additions & 50 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,57 +1,49 @@
on:
- push
---
on: push
name: Build and test
permissions:
contents: read
contents: write
jobs:
go-version:
name: Lookup go versions
build_and_test:
name: Build and test
runs-on: ubuntu-24.04
outputs:
minimal: ${{ steps.go-version.outputs.minimal }}
matrix: ${{ steps.go-version.outputs.matrix }}
steps:
- uses: actions/checkout@v6
- uses: arnested/go-version-action@v1
id: go-version
go_generate:
name: Check generated code is up to date
needs: go-version
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Run go test
uses: robherley/go-test-action@v0.7.1
with:
testArguments: -race -cover -covermode=atomic -coverprofile=coverage.txt ./...
- name: Install changelog management tool
run: go install github.com/goreleaser/chglog/cmd/chglog@main
- name: Build changelog
run: chglog init
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
args: release --snapshot

nilaway:
name: Nilaway
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- name: Install Go ${{ needs.go-version.outputs.minimal }}
uses: actions/setup-go@v6
with:
go-version: ${{ needs.go-version.outputs.minimal }}
- run: go version
- name: go generate
env:
GO111MODULE: 'on'
run: go generate -x
- name: Diff after go generate
run: git diff --exit-code
build_and_test:
name: Build and test
needs: go-version
runs-on: macos-latest
strategy:
matrix:
go-version: ${{ fromJSON(needs.go-version.outputs.matrix) }}
steps:
- uses: actions/checkout@v6
- name: Install Go ${{ matrix.go-version }}
uses: actions/setup-go@v6
with:
go-version: ${{ matrix.go-version }}.x
- run: go version
- name: go test
env:
GO111MODULE: 'on'
# We enable cgo to be able to test with `-race`.
CGO_ENABLED: 1
run: go test -v -race -cover -covermode=atomic -coverprofile=coverage.txt ./...
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v5
with:
flags: go${{ matrix.go-version }}
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Install nilaway
run: go install go.uber.org/nilaway/cmd/nilaway@latest
- name: Run nilaway
run: nilaway ./...
1 change: 1 addition & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: 'Dependency Review'
on: [pull_request]

Expand Down
34 changes: 0 additions & 34 deletions .github/workflows/docker-image-security-scan.yml

This file was deleted.

23 changes: 20 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
---
name: Lint
on: pull_request

permissions:
contents: read

jobs:
actionlint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- uses: reviewdog/action-actionlint@v1

dockerfile:
name: dockerfile
runs-on: ubuntu-24.04
Expand All @@ -19,9 +26,9 @@ jobs:
name: markdown
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- name: Run markdownlint
uses: DavidAnson/markdownlint-cli2-action@v22
- uses: actions/checkout@v6
- name: Run markdownlint
uses: DavidAnson/markdownlint-cli2-action@v22

golangci:
name: lint
Expand All @@ -40,3 +47,13 @@ jobs:
with:
version: latest
only-new-issues: true

yamllint:
name: Yamllint
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- name: Run Yamllint
uses: frenck/action-yamllint@v1.5.0
with:
strict: true
Loading