diff --git a/.github/workflows/clang-format-image.yml b/.github/workflows/clang-format-image.yml index a5cc31f..9b62231 100644 --- a/.github/workflows/clang-format-image.yml +++ b/.github/workflows/clang-format-image.yml @@ -75,7 +75,7 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: '1.17' + go-version: '^1.17' check-latest: true - name: Install ghcr-cleaner run: go install github.com/jidicula/ghcr-cleaner@latest diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c9604c3..9d45d73 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,7 +13,7 @@ defaults: jobs: test: - name: clang-format-${{ matrix.clang-format-version }} + name: ${{ inputs.runner-os }}-clang-format-${{ matrix.clang-format-version }} runs-on: ${{ inputs.runner-os }} strategy: fail-fast: false diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f0624e5..3017851 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,3 +1,3 @@ # Testing your contribution: -The GitHub Actions [Test workflow](https://github.com/jidicula/clang-format-action/actions/workflows/test.yml) is triggered on PR submission. It runs [`test/test.sh`](https://github.com/jidicula/clang-format-action/blob/main/test/test.sh) on the [test files](https://github.com/jidicula/clang-format-action/tree/main/test). Run this script locally to test your changes. If you're adding checking functionality for new file extensions, add test files that are known to pass this Action's check and known to fail this Action's check, in `test/known_pass` and `test/known_fail` respectively. +The GitHub Actions [Test workflow](https://github.com/jidicula/clang-format-action/actions/workflows/test.yml) is triggered on PR submission. It runs [`test/test.sh`](https://github.com/jidicula/clang-format-action/blob/main/test/test.sh) on the [test files](https://github.com/jidicula/clang-format-action/tree/main/test). Run this script locally to test your changes. If you're adding checking functionality for new file extensions, add test files that are known to pass this Action's check and known to fail this Action's check, in `test/known_pass` and `test/known_fail` respectively .