Skip to content

Tests runner dependabot/npm_and_yarn/express-4.19.2 #44

Tests runner dependabot/npm_and_yarn/express-4.19.2

Tests runner dependabot/npm_and_yarn/express-4.19.2 #44

Workflow file for this run

name: Tests runner
run-name: Tests runner ${{ github.head_ref || github.run_id }}
on:
workflow_dispatch:
pull_request:
push:
branches: [main]
# Cancel previous PR/branch runs when a new commit is pushed
concurrency:
group: ${{ github.head_ref || github.run_id }}
jobs:
# Makes sure that the published packages can be require'd without issues in a production environment
test-pacakges:
name: Packages test
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout project code
uses: actions/checkout@v1
- name: 📦 Prepare environment
uses: ./.github/actions/prepare-env
with:
build-only-packages: true
- name: ✅ Run Mocha/Chai unit tests
run: GITHUB_ACTION=true pnpm test:packages
test-server:
needs: [test-pacakges]
name: Server test
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout project code
uses: actions/checkout@v1
- name: 📦 Prepare environment
uses: ./.github/actions/prepare-env
with:
build-only-packages: true
- name: ✅ Run Mocha/Chai unit tests
run: GITHUB_ACTION=true pnpm coverage:junit
- name: ⬆️ Publish Unit Test Results
uses: EnricoMi/[email protected]
if: always()
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
files: ./apps/server/test-results.xml
- name: ⬆️ Upload coverage to Codecov
uses: codecov/codecov-action@v4
if: always()
with:
directory: ./apps/server/
token: ${{ secrets.CODECOV_TOKEN }}