improved action prefix unwrap #810
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: Testing | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Run Tests and Report Coverage | |
permissions: | |
checks: write | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.11.0 | |
registry-url: https://registry.npmjs.org | |
scope: "@lastui" | |
- run: npm ci --no-fund --no-audit | |
- run: npm run lint -- --debug | |
- run: npm run build:dependencies | |
- run: npm run build:platform | |
- run: npm run build:bootstrap | |
- run: npm run postbuild | |
- name: Test package platform | |
working-directory: platform | |
run: node ../cli/index.js test | |
- name: Collect coverage for platform | |
uses: codecov/codecov-action@v4 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
with: | |
fail_ci_if_error: true | |
flags: unittests | |
file: platform/coverage/clover.xml | |
- name: Test package bootstrap | |
working-directory: bootstrap | |
run: node ../cli/index.js test | |
- name: Collect coverage for bootstrap | |
uses: codecov/codecov-action@v4 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
with: | |
fail_ci_if_error: true | |
flags: unittests | |
file: bootstrap/coverage/clover.xml | |