Skip to content

Commit

Permalink
Updated the build action to use docker-compose file for test CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kdvalin committed Mar 19, 2021
1 parent c0a7404 commit c8def1d
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,27 @@ on: [push, pull_request]
jobs:
ci-checks:
runs-on: ubuntu-latest
container:
image: node:10.13

steps:
- uses: actions/checkout@v1
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '10.13'
- name: Setup cache
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- name: Fetch packages
run: npm ci
- name: Setup Test Environment
run: |
docker-compose up -d database
docker-compose up database_seed
- name: Run unit tests
run: npm test
- name: Tear down test environment
run: |
docker-compose down
- name: Build production build
run: npm run build

0 comments on commit c8def1d

Please sign in to comment.