Skip to content

Commit

Permalink
Run linters only on Ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontesi committed Oct 24, 2023
1 parent 62b0986 commit cddabd4
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/pre-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@ env:
jobs:
lint:
name: Run Linters and Vet
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, macos-latest]
runs-on: ubuntu-latest
env:
SHELL: /bin/bash

Expand Down Expand Up @@ -64,16 +61,9 @@ jobs:
- name: Install golangci-lint
run: make install-lint

- name: Install checkmake (Linux)
- name: Install checkmake
run: curl --location --output $CM_BIN --silent $CM_URL_LINUX
if: runner.os == 'Linux'

- name: Install checkmake (MacOS)
run: brew install checkmake
if: runner.os == 'macOS'

- run: chmod +x $CM_BIN
if: runner.os == 'Linux'

- name: Checkmake
run: checkmake --config=.checkmake Makefile
Expand Down

0 comments on commit cddabd4

Please sign in to comment.