chore(deps): update nrwl monorepo 15.9.7 (major) #31764
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: [push, pull_request] | |
jobs: | |
build_suite: | |
runs-on: ${{ matrix.os }} | |
name: Build - ${{ matrix.os }} - Node ${{ matrix.node }} | |
timeout-minutes: 30 | |
strategy: | |
max-parallel: 4 | |
matrix: | |
node: [18, 20] | |
os: [ubuntu-latest] #, windows-latest] | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 200 | |
- name: Setup Node | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Setup Cache | |
uses: actions/[email protected] | |
with: | |
path: | | |
node_modules | |
*/*/node_modules | |
key: ${{ runner.os }}-node${{ matrix.node }}-npm-${{ hashFiles('**/package-lock.json') }} | |
- name: Install Deps | |
run: | | |
npm install -g npm@8 | |
npm ci | |
- name: Run Build | |
run: npx lerna run build | |
- name: Archive production artifacts | |
uses: actions/[email protected] | |
with: | |
name: build-${{matrix.os}}-${{matrix.node}} | |
path: | | |
packages/*/dist | |
test_suite: | |
needs: build_suite | |
runs-on: ${{ matrix.os }} | |
name: Test - ${{ matrix.os }} - Node ${{ matrix.node }} | |
timeout-minutes: 30 | |
strategy: | |
max-parallel: 4 | |
matrix: | |
node: [18, 20] | |
os: [ubuntu-latest] #, windows-latest] | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 200 | |
- name: Setup Node | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Setup Cache | |
uses: actions/[email protected] | |
with: | |
path: | | |
node_modules | |
*/*/node_modules | |
key: ${{ runner.os }}-node${{ matrix.node }}-npm-${{ hashFiles('**/package-lock.json') }} | |
- name: Install Deps | |
run: | | |
npm install -g npm@8 | |
npm ci | |
- name: Download Build artifacts | |
uses: actions/[email protected] | |
with: | |
name: build-${{matrix.os}}-${{matrix.node}} | |
path: ./packages | |
- name: Run Test | |
run: npx lerna run test:coverage | |
- name: Retrieve Codecov Flag Name | |
id: 'flagname' | |
run: | | |
FLAGNAME=$(echo "${{ matrix.package.name }}" | sed -n -e 's/^.*\///p') | |
echo "::set-output name=flagname::${FLAGNAME}" | |
- name: Upload coverage to Codecov Monorepo | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
flags: unit #${{ steps.flagname.outputs.flagname }} | |
directory: ${{ matrix.package.location }} | |
name: Test | |
fail_ci_if_error: false | |
verbose: false | |
lint_suite: | |
needs: build_suite | |
runs-on: ${{ matrix.os }} | |
name: Lint - ${{ matrix.os }} - Node ${{ matrix.node }} | |
timeout-minutes: 30 | |
strategy: | |
max-parallel: 4 | |
matrix: | |
node: [20] | |
os: [ubuntu-latest] #, windows-latest] | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 200 | |
- name: Setup Node | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Setup Cache | |
uses: actions/[email protected] | |
with: | |
path: | | |
node_modules | |
*/*/node_modules | |
key: ${{ runner.os }}-node${{ matrix.node }}-npm-${{ hashFiles('**/package-lock.json') }} | |
- name: Install Deps | |
run: | | |
npm install -g npm@8 | |
npm ci | |
- name: Download Build artifacts | |
uses: actions/[email protected] | |
with: | |
name: build-${{matrix.os}}-${{matrix.node}} | |
path: ./packages | |
- name: Lint ALL Packages | |
run: npx lerna run lint | |
- name: Lint ALL Packages | |
run: npx lerna run eslint | |
- name: Lint ALL Packages | |
run: npx lerna run prettier | |
docs_suite: | |
needs: build_suite | |
runs-on: ${{ matrix.os }} | |
name: Docs - ${{ matrix.os }} - Node ${{ matrix.node }} | |
# only run docs on pull_requests and non feature branches | |
if: ${{ github.event_name == 'pull_request' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' }} | |
timeout-minutes: 30 | |
strategy: | |
max-parallel: 4 | |
matrix: | |
node: [20] | |
os: [ubuntu-latest] #, windows-latest] | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 200 | |
- name: Setup Node | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Setup Cache | |
uses: actions/[email protected] | |
with: | |
path: | | |
node_modules | |
*/*/node_modules | |
key: ${{ runner.os }}-node${{ matrix.node }}-npm-${{ hashFiles('**/package-lock.json') }} | |
- name: Install Deps | |
run: | | |
npm install -g npm@8 | |
npm ci | |
- name: Download Build artifacts | |
uses: actions/[email protected] | |
with: | |
name: build-${{matrix.os}}-${{matrix.node}} | |
path: ./packages | |
- name: Run Docs | |
run: npx lerna run docs | |
# run: npm run docs | |
- name: Build READMEs | |
run: npm run build:readme | |
finish: | |
needs: [test_suite, lint_suite, docs_suite] | |
name: Finish Test | |
runs-on: ubuntu-latest | |
if: ${{ !failure() && !cancelled() }} | |
steps: | |
- name: Coveralls Finished | |
run: echo "Test Finished" |