Skip to content

CI: Travis -> GitHub Actions; Create Release Binaries and Container Images #25

CI: Travis -> GitHub Actions; Create Release Binaries and Container Images

CI: Travis -> GitHub Actions; Create Release Binaries and Container Images #25

Workflow file for this run

name: Checks
# Run on push to main and any pull request.
# Allow manual execution of the workflow.
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
permissions:
checks: write # Allow write access to checks to allow annotation of code in the PR.
contents: read
pull-requests: read
jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- name: Check if go.mod is tidy
run: |
go mod tidy
git diff --exit-code go.mod go.sum || (echo "::error::go.mod and go.sum need to be tidy" && exit 1)
- name: Check if vendor directory is up to date
run: |
go mod vendor
git diff --exit-code vendor || (echo "::error::vendor directory needs to be updated" && exit 1)
- name: Run GolangCI-Lint
uses: golangci/golangci-lint-action@v4
with:
version: latest