Update node version from 12.x LTS to 16.x LTS for the github action workflow validate-monorepo.
57 lines
1.4 KiB
YAML
57 lines
1.4 KiB
YAML
name: Validate Monorepo
|
|
on: pull_request
|
|
jobs:
|
|
|
|
compliance:
|
|
name: License Compliance
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/cache@v2
|
|
id: cache
|
|
with:
|
|
path: '**/node_modules'
|
|
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: '16.x'
|
|
- run: yarn install
|
|
if: steps.cache.outputs.cache-hit != 'true'
|
|
- run: yarn run compliance:licenses
|
|
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/cache@v2
|
|
id: cache
|
|
with:
|
|
path: '**/node_modules'
|
|
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: '16.x'
|
|
- run: yarn install
|
|
if: steps.cache.outputs.cache-hit != 'true'
|
|
- run: yarn lint
|
|
|
|
test:
|
|
name: Test
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 15
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/cache@v2
|
|
id: cache
|
|
with:
|
|
path: '**/node_modules'
|
|
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: '16.x'
|
|
- run: yarn install
|
|
if: steps.cache.outputs.cache-hit != 'true'
|
|
- run: yarn test
|