Use a different coverage reporter due to forking issues #570
Workflow file for this run
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: Validate | |
on: | |
push: | |
branches: | |
- main | |
- gh-pages | |
- 'features/**' | |
pull_request: | |
branches: | |
- main | |
- gh-pages | |
- 'features/**' | |
permissions: | |
contents: read | |
pull-requests: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [16.x] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Cache multiple paths | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Use Node.js ${{ matrix.node }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install wasm-pack | |
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | |
- name: Install Dependencies | |
run: npm ci | |
- name: Setup LCOV | |
uses: hrishikesh-kadam/setup-lcov@v1 | |
- name: Check for the presence of changed files inside ./change | |
run: npm run check | |
- name: Build package files | |
run: npm run build --workspace=design-to-code --workspace=design-to-code-react | |
- name: Build test app | |
run: npm run build:app --workspace=design-to-code --workspace=design-to-code-react | |
- name: Install playwright browsers | |
run: npx playwright install | |
- name: Test design to code package | |
run: npm run test --workspace=design-to-code | |
- name: Create test report for design to code package | |
run: npm run test:report --workspace=design-to-code | |
- name: Publish design to code package report | |
uses: zgosalvez/github-actions-report-lcov@v3 | |
with: | |
coverage-files: ./coverage/lcov.info | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
working-directory: ./packages/design-to-code/src/ | |
update-comment: true | |
- name: Test design to code react package | |
run: npm run test --workspace=design-to-code-react | |
- name: Create test report for design to code package | |
run: npm run test:report --workspace=design-to-code-react | |
- name: Publish design to code react package report | |
uses: zgosalvez/github-actions-report-lcov@v3 | |
with: | |
coverage-files: ./coverage/lcov.info | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
working-directory: ./packages/design-to-code-react/src/ | |
update-comment: true | |
- name: Build docs site | |
run: npm run build:gh-pages | |