Skip to content

Commit

Permalink
Update workflow to run test app
Browse files Browse the repository at this point in the history
  • Loading branch information
iaincollins committed Sep 3, 2020
1 parent 3046691 commit 66afc69
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/test-build.yml
@@ -1,5 +1,3 @@
# Build and run tests with `npm test` on every pull request

name: Test Build

on:
Expand All @@ -24,5 +22,5 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm run build
- run: npm test
28 changes: 28 additions & 0 deletions .github/workflows/test-integration.yml
@@ -0,0 +1,28 @@
name: Integration Test

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build
- run: npm test
- run: npm run test:app:start
- run: npm run test:app:stop

0 comments on commit 66afc69

Please sign in to comment.