.github/workflows/test.yml in datadog_api_client-1.8.0 vs .github/workflows/test.yml in datadog_api_client-1.9.0

- old
+ new

@@ -42,33 +42,38 @@ key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }} - id: pre_commit name: Run pre-commit if: github.event.action != 'closed' && github.event.pull_request.merged != true run: | - pre-commit run --from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }} --show-diff-on-failure --color=always + pre-commit run --from-ref "${FROM_REF}" --to-ref "${TO_REF}" --show-diff-on-failure --color=always + env: + FROM_REF: ${{ github.event.pull_request.base.sha }} + TO_REF: ${{ github.event.pull_request.head.sha }} - name: Commit changes if: ${{ failure() }} run: |- git add -A git config user.name "${GIT_AUTHOR_NAME}" git config user.email "${GIT_AUTHOR_EMAIL}" git commit -m "pre-commit fixes" - git push origin HEAD:${{ github.event.pull_request.head.ref }} + git push origin "HEAD:${HEAD_REF}" exit 1 + env: + HEAD_REF: ${{ github.event.pull_request.head.ref }} test: strategy: matrix: - ruby-version: ["2.5", "3.1", "jruby"] + ruby-version: ["2.6", "3.1", "jruby"] platform: [ubuntu-latest, macos-latest] # , windows-latest] # test only latest version on macos and windows exclude: - platform: macos-latest - ruby-version: "2.5" + ruby-version: "2.6" - platform: macos-latest ruby-version: "jruby" # - platform: windows-latest - # ruby-version: '2.5' + # ruby-version: '2.6' # - platform: windows-latest # ruby-version: '2.6' runs-on: ${{ matrix.platform }} if: github.event.pull_request.draft == false && !contains(github.event.pull_request.labels.*.name, 'ci/skip') && !contains(github.event.pull_request.head.ref, 'datadog-api-spec/test/') env: