test #439
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: | |
| - master | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| schedule: | |
| - cron: "0 10 * * 5" # JST 19:00 (Fri) | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ruby: | |
| - "2.1" | |
| - "2.2" | |
| - "2.3" | |
| - "2.4" | |
| - "2.5" | |
| - "2.6" | |
| - "2.7" | |
| - "3.0" | |
| - "3.1" | |
| - "3.2" | |
| - "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 | |
| cache-version: 1 | |
| - run: bundle update --all --jobs $(nproc) --retry 3 | |
| - run: bundle exec rspec | |
| - name: Slack Notification (not success) | |
| uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2 | |
| if: "! success()" | |
| continue-on-error: true | |
| with: | |
| status: ${{ job.status }} | |
| webhook-url: ${{ secrets.SLACK_WEBHOOK }} | |
| matrix: ${{ toJson(matrix) }} | |
| 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@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2 | |
| if: "! success()" | |
| continue-on-error: true | |
| with: | |
| status: ${{ job.status }} | |
| webhook-url: ${{ secrets.SLACK_WEBHOOK }} | |
| all-pass: | |
| if: always() | |
| needs: | |
| - test | |
| - yard | |
| runs-on: ubuntu-slim | |
| steps: | |
| - name: check dependent jobs | |
| uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2 | |
| with: | |
| jobs: ${{ toJSON(needs) }} |