Skip to content

chore: Migration to nrwl and lerna 7, update dependencies and node version to 16 #75

chore: Migration to nrwl and lerna 7, update dependencies and node version to 16

chore: Migration to nrwl and lerna 7, update dependencies and node version to 16 #75

Workflow file for this run

name: PR CI
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.20.0]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: npm i package lock
run: npm install --package-lock-only
- name: npm install
run: npm ci
- name: build
run: npm run lerna run build
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.20.0]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: npm i package lock
run: npm install --package-lock-only
- name: npm install
run: npm ci
- name: test
run: npm run lerna run test
validate:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.20.0]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: npm i package lock
run: npm install --package-lock-only
- name: npm install
run: npm ci
- name: Validate current commit (last commit) with commitlint
if: github.event_name == 'push'
run: npx commitlint --from HEAD~1 --to HEAD --verbose
- name: Validate PR commits with commitlint
if: github.event_name == 'pull_request'
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
- name: lint
run: npm run lint