diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..87ceab9 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,32 @@ +name: CI + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + env: + BUNDLE_JOBS: 4 + strategy: + matrix: + ruby: [3.1, 3.2, 3.3] + + steps: + - uses: actions/checkout@v4 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + - uses: actions/setup-node@v4 + - name: Install Playwright Browsers + run: npx playwright install --with-deps chromium + - name: Run tests + run: bundle exec rspec spec