Skip to content

fix: 📦 update nrwl monorepo to v19 #17020

fix: 📦 update nrwl monorepo to v19

fix: 📦 update nrwl monorepo to v19 #17020

Workflow file for this run

name: Build & Test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- name: Cache node_modules
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-build-${{ env.cache-name }}-
${{ runner.OS }}-build-
${{ runner.OS }}-
- name: Install
run: |
yarn install --frozen-lockfile
- name: Build
run: |
yarn nx affected:build --with-deps --prod --all
e2e:
runs-on: ubuntu-latest
container: cypress/browsers:node13.6.0-chrome80-ff72
env:
CYPRESS_CACHE_FOLDER: .cypress-cache
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- name: Cache node_modules
uses: actions/cache@v2
with:
path: |
node_modules
.cypress-cache
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-build-${{ env.cache-name }}-
${{ runner.OS }}-build-
${{ runner.OS }}-
- name: Install
run: |
yarn install --frozen-lockfile
- name: E2E
run: |
yarn run-p --race "start:api" "e2e --headless"
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- name: Cache node_modules
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-build-${{ env.cache-name }}-
${{ runner.OS }}-build-
${{ runner.OS }}-
- name: Install
run: |
yarn install --frozen-lockfile
- name: Test
run: |
yarn test --code-coverage
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}