cache + first composite test

This commit is contained in:
negue
2023-05-09 00:37:21 +02:00
parent 71e165433a
commit 094c5b54d6
2 changed files with 61 additions and 16 deletions
+23 -16
View File
@@ -12,20 +12,12 @@ jobs:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
- name: Setup
uses: './.github/actions/shared-job-steps'
with:
node-version: ${{ matrix.node-version }}
- run: cp config.json.example config.json
- name: npm install
run: |
npm ci
env:
CI: true
NODE_ENV: test
node-env: 'test'
- run: npm run lint-no-fix
apidoc:
runs-on: ubuntu-latest
@@ -37,11 +29,19 @@ jobs:
with:
fetch-depth: 1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Cache multiple paths
id: cache-package
uses: actions/cache@v2
with:
path: |
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }}
- run: cp config.json.example config.json
- name: npm install
if: steps.cache-package.outputs.cache-hit != 'true'
run: |
npm ci
env:
@@ -58,9 +58,16 @@ jobs:
with:
fetch-depth: 1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Cache multiple paths
id: cache-package
uses: actions/cache@v2
with:
path: |
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }}
- run: cp config.json.example config.json
- name: npm install
run: |
@@ -69,7 +76,7 @@ jobs:
CI: true
NODE_ENV: test
- run: npm run test:sanity
common:
runs-on: ubuntu-latest
strategy:
@@ -112,7 +119,7 @@ jobs:
CI: true
NODE_ENV: test
- run: npm run test:content
api-unit:
runs-on: ubuntu-latest
strategy: