Skip to content

Commit

Permalink
build client when tests are run
Browse files Browse the repository at this point in the history
  • Loading branch information
acoffman committed Aug 22, 2022
1 parent 7a5deeb commit 240e813
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
branches: [ main, staging]

jobs:
tests:
name: Tests
backend_tests:
name: Backend Tests
runs-on: 'ubuntu-latest'
strategy:
matrix:
Expand Down Expand Up @@ -46,3 +46,25 @@ jobs:
RAILS_ENV: test
run: bundle exec rails test
working-directory: ./server

frontend_tests:
name: Frontend Tests
runs-on: 'ubuntu-latest'

steps:
- name: 'Checkout code'
uses: actions/checkout@v2

- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 14

- run: npm install -g yarn
working-directory: ./client

- run: yarn install
working-directory: ./client

- run: yarn build
working-directory: ./client

0 comments on commit 240e813

Please sign in to comment.