diff --git a/.github/workflows/checkmake.yaml b/.github/workflows/checkmake.yaml new file mode 100644 index 0000000..11db7f7 --- /dev/null +++ b/.github/workflows/checkmake.yaml @@ -0,0 +1,35 @@ +name: CheckMake +on: + push: + tags: + - v* + branches: + - main + - release-* + pull_request: + branches: + - main + - release-* + +# cancel the in-progress workflow when PR is refreshed. +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + checkmake: + name: CheckMake + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + # checkmake uses go run, so this needs go installed + - name: Set up Go + uses: actions/setup-go@v6 + with: + go-version: 'stable' + id: go + - name: Run CheckMake + run: make checkmake diff --git a/.github/workflows/shellcheck.yaml b/.github/workflows/shellcheck.yaml new file mode 100644 index 0000000..5edfbf0 --- /dev/null +++ b/.github/workflows/shellcheck.yaml @@ -0,0 +1,33 @@ +name: ShellCheck +on: + push: + tags: + - v* + branches: + - main + - release-* + pull_request: + branches: + - main + - release-* + +# cancel the in-progress workflow when PR is refreshed. +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + shellcheck: + name: Shellcheck + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - name: install shellcheck + run: | + sudo apt-get update + sudo apt-get install -y shellcheck + - name: Run ShellCheck + run: make shellcheck