Skip to content
Snippets Groups Projects
  • Will McCutchen's avatar
    c9f5002d
    Build & CI updates (#116) · c9f5002d
    Will McCutchen authored
    A few small tweaks:
    - Simplify makefile
    - Cancel in-progress CI jobs when new commits are pushed to a non-main
    branch
    - Drop manual codeql config now that GitHub supports automagical
    configuration
    Build & CI updates (#116)
    Will McCutchen authored
    A few small tweaks:
    - Simplify makefile
    - Cancel in-progress CI jobs when new commits are pushed to a non-main
    branch
    - Drop manual codeql config now that GitHub supports automagical
    configuration
lint.yaml 583 B
name: Lint

on:
  push:
    branches: [main] # pushes TO main
  pull_request:
    branches: [main] # pull requests AGAINST main

# cancel CI runs when a new commit is pushed to any branch except main
concurrency:
  group: "lint-${{ github.ref }}"
  cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
  golangci:
    name: Lint
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-go@v2
        with:
          go-version: '1.20'
      - uses: golangci/golangci-lint-action@v3.4.0
        with:
          version: v1.52.2