Bump act10ns/slack from cfcc30955fe9377f4f55e1079e5419ee1014269f to 2f01f46db9f41c75a04d93c6ce310bc51db7cb50 #158
Workflow file for this run
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: test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ruby: | |
| - "3.3" | |
| - "3.4" | |
| - "4.0" | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: ruby/setup-ruby@09a7688d3b55cf0e976497ff046b70949eeaccfd # v1.288.0 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| bundler-cache: true | |
| - name: bundle update | |
| run: | | |
| set -xe | |
| bundle config path vendor/bundle | |
| bundle update --all --jobs $(nproc) --retry 3 | |
| - run: sudo apt-get update | |
| - run: sudo apt-get install -y universal-ctags | |
| - run: bundle exec rake spec | |
| - name: Slack Notification (not success) | |
| uses: act10ns/slack@2f01f46db9f41c75a04d93c6ce310bc51db7cb50 # v2 | |
| if: "! success()" | |
| continue-on-error: true | |
| with: | |
| status: ${{ job.status }} | |
| webhook-url: ${{ secrets.SLACK_WEBHOOK }} | |
| matrix: ${{ toJson(matrix) }} | |
| rubocop: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: ruby/setup-ruby@09a7688d3b55cf0e976497ff046b70949eeaccfd # v1.288.0 | |
| with: | |
| ruby-version: ruby | |
| bundler-cache: true | |
| - name: bundle update | |
| run: | | |
| set -xe | |
| bundle config path vendor/bundle | |
| bundle update --all --jobs $(nproc) --retry 3 | |
| - run: bundle exec rake rubocop | |
| - name: Slack Notification (not success) | |
| uses: act10ns/slack@2f01f46db9f41c75a04d93c6ce310bc51db7cb50 # v2 | |
| if: "! success()" | |
| continue-on-error: true | |
| with: | |
| status: ${{ job.status }} | |
| webhook-url: ${{ secrets.SLACK_WEBHOOK }} | |
| rbs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: ruby/setup-ruby@09a7688d3b55cf0e976497ff046b70949eeaccfd # v1.288.0 | |
| with: | |
| ruby-version: ruby | |
| bundler-cache: true | |
| - name: bundle update | |
| run: | | |
| set -xe | |
| bundle config path vendor/bundle | |
| bundle update --all --jobs $(nproc) --retry 3 | |
| - run: bundle exec rake rbs:install | |
| - run: bundle exec rake rbs | |
| - name: Slack Notification (not success) | |
| uses: act10ns/slack@2f01f46db9f41c75a04d93c6ce310bc51db7cb50 # v2 | |
| if: "! success()" | |
| continue-on-error: true | |
| with: | |
| status: ${{ job.status }} | |
| webhook-url: ${{ secrets.SLACK_WEBHOOK }} | |
| yard: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: ruby/setup-ruby@09a7688d3b55cf0e976497ff046b70949eeaccfd # v1.288.0 | |
| with: | |
| ruby-version: ruby | |
| bundler-cache: true | |
| - name: bundle update | |
| run: | | |
| set -xe | |
| bundle config path vendor/bundle | |
| bundle update --all --jobs $(nproc) --retry 3 | |
| - name: yard generating test | |
| run: | | |
| set -xe | |
| bundle exec yard | |
| ls -ld doc/ | |
| - name: Slack Notification (not success) | |
| uses: act10ns/slack@2f01f46db9f41c75a04d93c6ce310bc51db7cb50 # v2 | |
| if: "! success()" | |
| continue-on-error: true | |
| with: | |
| status: ${{ job.status }} | |
| webhook-url: ${{ secrets.SLACK_WEBHOOK }} | |
| all-pass: | |
| if: always() | |
| needs: | |
| - test | |
| - rubocop | |
| - rbs | |
| - yard | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: check dependent jobs | |
| uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2 | |
| with: | |
| jobs: ${{ toJSON(needs) }} |