Skip to content

Test

Test #107

Workflow file for this run

name: Test
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
workflow_dispatch:
schedule:
- cron: "0 1 * * 1" # At 01:00 (UTC) / 10:00 (JST) on Monday
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: [2.7]
node: [18, 20]
env:
BUNDLE_GEMFILE: test.gemfile
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle install
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: "npm"
- run: npm install
- run: npm run build
- run: npm run start &
- run: rake test