Merge pull request #53 from QWYNG/mugendai_na_yumeno_ato #182
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: Ruby | |
| on: | |
| pull_request: | |
| push: | |
| branches: [ master ] | |
| jobs: | |
| rspec: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| ruby-version: | |
| - 3.4.5 # Atcoderが採用しているバージョン | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Ruby ${{ matrix.ruby-version }} | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby-version }} | |
| - name: Bundle install | |
| run: bundle install | |
| - name: Run Rspec | |
| env: | |
| USER_NAME: ${{ secrets.USER_NAME }} | |
| PASSWORD: ${{ secrets.PASSWORD }} | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| run: script -e -c "rake spec" | |
| rubocop: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 3.4.5 | |
| - name: Bundle install | |
| run: bundle install | |
| - name: Run rubocop | |
| run: bundle exec rubocop | |