Skip to content

Commit

Permalink
Add test workflow (GitHub Actions)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chalarangelo committed Jul 25, 2024
1 parent 48579a2 commit 8780970
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Run tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
js_tests:
name: 'Node.js ${{ matrix.node-version }} tests'
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test

rspec_tests:
name: 'Ruby ${{ matrix.ruby-version }} tests'
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: [3.3.3]
steps:
- uses: actions/checkout@v4
- name: Use Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- run: gem install bundler
- run: bundle install
- run: RAILS_ENV=test bundle exec rspec

0 comments on commit 8780970

Please sign in to comment.