Bump the github-actions group with 2 updates (#90) #124
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - v1.1 | |
| pull_request: | |
| branches: | |
| - "*" | |
| permissions: {} | |
| jobs: | |
| lint-actions: | |
| name: GitHub Actions audit | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Run actionlint | |
| uses: rhysd/actionlint@914e7df21a07ef503a81201c76d2b11c789d3fca # v1.7.12 | |
| - name: Run zizmor | |
| uses: zizmorcore/zizmor-action@6fc4b006235f201fdab3722e17240ab420d580e5 # v0.6.1 | |
| with: | |
| advanced-security: false | |
| ruby-versions: | |
| permissions: {} | |
| uses: ruby/actions/.github/workflows/ruby_versions.yml@master # zizmor: ignore[unpinned-uses] -- trusted ruby-org reusable workflow; @master required to keep the Ruby version matrix current | |
| with: | |
| engine: cruby-jruby | |
| min_version: 3.3 | |
| test: | |
| needs: ruby-versions | |
| permissions: | |
| contents: read | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu] | |
| ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} | |
| name: >- | |
| ${{matrix.os}}:ruby-${{matrix.ruby}} | |
| runs-on: ${{matrix.os}}-latest | |
| continue-on-error: ${{matrix.ruby == 'head' || matrix.ruby == 'jruby'}} | |
| steps: | |
| - name: Check out | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set up ruby and bundle | |
| uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0 | |
| with: | |
| ruby-version: ${{matrix.ruby}} | |
| bundler-cache: true | |
| - name: Run rake | |
| run: | | |
| bundle exec rake | |
| ci-pass: | |
| if: always() | |
| needs: test | |
| runs-on: ubuntu-latest | |
| permissions: {} | |
| steps: | |
| - name: Check test results | |
| env: | |
| TEST_RESULT: ${{ needs.test.result }} | |
| run: | | |
| if [ "$TEST_RESULT" != "success" ]; then | |
| exit 1 | |
| fi |