Skip to content

Commit

Permalink
ci: test on GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
theodorton committed Mar 15, 2024
1 parent 1c7d536 commit 8063f0e
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8063f0e

Please sign in to comment.