Ruby Exercise Test #8
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 Exercise Test | |
| on: | |
| schedule: | |
| - cron: '0 12 * * 1' | |
| push: | |
| branches: [ master ] | |
| paths: | |
| - 'packages/ruby-exercise/**' | |
| pull_request: | |
| branches: [ master ] | |
| paths: | |
| - 'packages/ruby-exercise/**' | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.2' | |
| bundler-cache: true | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v2 | |
| with: | |
| version: '10.8.1' | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Install Ruby dependencies with nx | |
| run: pnpm dlx nx bundle ruby-exercise | |
| - name: Run tests | |
| run: pnpm dlx nx test ruby-exercise --no-cloud |