Add github actions to landing-page-jest branch. And run jest tests

pull/1/head
rebuilt 4 years ago
parent 809e931b3c
commit bc8adec408

@ -2,7 +2,7 @@ name: Build and Test
on: on:
push: push:
branches: [ main ] branches: [ main, landing-page-jest ]
jobs: jobs:
test: test:
@ -35,9 +35,13 @@ jobs:
uses: ruby/setup-ruby@v1 uses: ruby/setup-ruby@v1
with: with:
bundler-cache: true bundler-cache: true
- name: Install dependencies - name: Install rails dependencies
run: bundle install run: bundle install
- name: Create DB - name: Create DB
run: bundle exec rake db:test:prepare run: bundle exec rake db:test:prepare
- name: Run tests - name: Run tests
run: bundle exec rake run: bundle exec rake
- name: Install javascript dependencies
run: yarn install
- name: Run javascript tests
run: yarn test

Loading…
Cancel
Save