|
@@ -39,7 +39,7 @@ jobs:
|
|
|
yarn list --depth=0
|
|
yarn list --depth=0
|
|
|
|
|
|
|
|
|
|
|
|
|
- lint:
|
|
|
|
|
|
|
+ test:
|
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
|
needs: resolve-dependencies
|
|
needs: resolve-dependencies
|
|
|
|
|
|
|
@@ -49,6 +49,10 @@ jobs:
|
|
|
|
|
|
|
|
steps:
|
|
steps:
|
|
|
- uses: actions/checkout@v1
|
|
- uses: actions/checkout@v1
|
|
|
|
|
+ - name: Use Node.js ${{ matrix.node-version }}
|
|
|
|
|
+ uses: actions/setup-node@v1
|
|
|
|
|
+ with:
|
|
|
|
|
+ node-version: ${{ matrix.node-version }}
|
|
|
- name: Cache/Restore node_modules
|
|
- name: Cache/Restore node_modules
|
|
|
uses: actions/cache@v1
|
|
uses: actions/cache@v1
|
|
|
with:
|
|
with:
|
|
@@ -59,22 +63,6 @@ jobs:
|
|
|
run: |
|
|
run: |
|
|
|
yarn lint
|
|
yarn lint
|
|
|
|
|
|
|
|
-
|
|
|
|
|
- test:
|
|
|
|
|
- runs-on: ubuntu-latest
|
|
|
|
|
- needs: resolve-dependencies
|
|
|
|
|
-
|
|
|
|
|
- strategy:
|
|
|
|
|
- matrix:
|
|
|
|
|
- node-version: [10.x, 12.x]
|
|
|
|
|
-
|
|
|
|
|
- steps:
|
|
|
|
|
- - uses: actions/checkout@v1
|
|
|
|
|
- - name: Cache/Restore node_modules
|
|
|
|
|
- uses: actions/cache@v1
|
|
|
|
|
- with:
|
|
|
|
|
- path: node_modules
|
|
|
|
|
- key: ${{ runner.OS }}-node_modules-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}
|
|
|
|
|
- name: Launch MongoDB
|
|
- name: Launch MongoDB
|
|
|
uses: wbari/start-mongoDB@v0.2
|
|
uses: wbari/start-mongoDB@v0.2
|
|
|
with:
|
|
with:
|
|
@@ -96,6 +84,10 @@ jobs:
|
|
|
|
|
|
|
|
steps:
|
|
steps:
|
|
|
- uses: actions/checkout@v1
|
|
- uses: actions/checkout@v1
|
|
|
|
|
+ - name: Use Node.js ${{ matrix.node-version }}
|
|
|
|
|
+ uses: actions/setup-node@v1
|
|
|
|
|
+ with:
|
|
|
|
|
+ node-version: ${{ matrix.node-version }}
|
|
|
- name: Cache/Restore node_modules
|
|
- name: Cache/Restore node_modules
|
|
|
uses: actions/cache@v1
|
|
uses: actions/cache@v1
|
|
|
with:
|
|
with:
|
|
@@ -116,10 +108,10 @@ jobs:
|
|
|
|
|
|
|
|
steps:
|
|
steps:
|
|
|
- uses: actions/checkout@v1
|
|
- uses: actions/checkout@v1
|
|
|
- - name: Launch MongoDB
|
|
|
|
|
- uses: wbari/start-mongoDB@v0.2
|
|
|
|
|
|
|
+ - name: Use Node.js ${{ matrix.node-version }}
|
|
|
|
|
+ uses: actions/setup-node@v1
|
|
|
with:
|
|
with:
|
|
|
- mongoDBVersion: 3.6
|
|
|
|
|
|
|
+ node-version: ${{ matrix.node-version }}
|
|
|
- name: Cache/Restore node_modules
|
|
- name: Cache/Restore node_modules
|
|
|
uses: actions/cache@v1
|
|
uses: actions/cache@v1
|
|
|
with:
|
|
with:
|
|
@@ -128,6 +120,10 @@ jobs:
|
|
|
restore-keys: |
|
|
restore-keys: |
|
|
|
${{ runner.OS }}-node_modules-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}
|
|
${{ runner.OS }}-node_modules-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}
|
|
|
${{ runner.OS }}-node_modules-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}-build-prod
|
|
${{ runner.OS }}-node_modules-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}-build-prod
|
|
|
|
|
+ - name: Launch MongoDB
|
|
|
|
|
+ uses: wbari/start-mongoDB@v0.2
|
|
|
|
|
+ with:
|
|
|
|
|
+ mongoDBVersion: 3.6
|
|
|
- name: yarn build:prod:analyze
|
|
- name: yarn build:prod:analyze
|
|
|
run: |
|
|
run: |
|
|
|
yarn build:prod:analyze
|
|
yarn build:prod:analyze
|