Skip to content

chore(demo-playwright): add Playwright #11892

chore(demo-playwright): add Playwright

chore(demo-playwright): add Playwright #11892

Workflow file for this run

name: ⚙️ Unit tests
on:
pull_request:
push:
branches:
- main
jobs:
test:
if: ${{ !contains(github.head_ref, 'release/') }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
project:
[
addon-charts,
addon-commerce,
addon-doc,
addon-mobile,
addon-preview,
addon-table,
addon-tablebars,
cdk,
core,
demo,
kit,
]
name: ${{ matrix.project }}
steps:
- uses: actions/[email protected]
- name: Setup Node.js and Cache
uses: ./.github/actions/nodejs
- name: Run tests for ${{ matrix.project }}
run: npx nx test ${{ matrix.project }} --skip-nx-cache
- name: Archive coverage artifacts
uses: actions/[email protected]
with:
name: coverage-${{ github.workflow }}-${{ github.run_id }}
path: coverage
codecov:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
name: coverage-${{ github.workflow }}-${{ github.run_id }}
path: coverage
- name: Display structure of coverage files
run: tree -L 2 ./coverage -P 'lcov.info'
- uses: codecov/[email protected]
with:
directory: ./coverage/kit/
flags: summary,kit
name: kit
- uses: codecov/[email protected]
with:
directory: ./coverage/core/
flags: summary,core
name: core
- uses: codecov/[email protected]
with:
directory: ./coverage/cdk/
flags: summary,cdk
name: cdk
- uses: codecov/[email protected]
with:
directory: ./coverage/addon-tablebars/
flags: summary,addon-tablebars
name: addon-tablebars
- uses: codecov/[email protected]
with:
directory: ./coverage/addon-table/
flags: summary,addon-table
name: addon-table
- uses: codecov/[email protected]
with:
directory: ./coverage/addon-mobile/
flags: summary,addon-mobile
name: addon-mobile
- uses: codecov/[email protected]
with:
directory: ./coverage/addon-doc/
flags: summary,addon-doc
name: addon-doc
- uses: codecov/[email protected]
with:
directory: ./coverage/addon-commerce/
flags: summary,addon-charts
name: addon-commerce
- uses: codecov/[email protected]
with:
directory: ./coverage/addon-charts/
flags: summary,addon-charts
name: addon-charts
concurrency:
group: test-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true