-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (38 loc) · 972 Bytes
/
npm-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
repository_dispatch:
types: [data-models-update]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14
- name: Install
run: npm install
- name: Test
run: npm test
deploy-site:
needs: test
if: ${{ github.ref == 'refs/heads/master' }}
runs-on: ubuntu-latest
steps:
- name: Checkout Validator App
uses: actions/checkout@v2
with:
repository: openactive/data-model-validator-site
- name: Deploy
uses: akhileshns/[email protected]
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: "data-model-validator-staging"
heroku_email: "[email protected]"
dontautocreate: true