-
Notifications
You must be signed in to change notification settings - Fork 4
30 lines (29 loc) · 874 Bytes
/
test.yml
File metadata and controls
30 lines (29 loc) · 874 Bytes
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
name: Test
on:
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@master
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '16.x'
scope: '@foo-software'
- name: Install
run: |
npm install --workspaces
# build packages synchronously to ensure sibling dependencies are built.
# @TODO - see if it's possible to do this better
# first build the one that consumed by siblings, then just build all
npm run build --workspace="@foo-software/ghost-graphql"
npm run build --workspaces --if-present
- name: Integration Tests
run: |
cd packages/ghost-graphql-integration-tests
npm run test