Files
discordeno/.github/workflows/unit-test.yml
dependabot[bot] 72844563a4 build(deps): bump rharkor/caching-for-turbo from 2.3.11 to 2.3.13 (#4944)
Bumps [rharkor/caching-for-turbo](https://github.com/rharkor/caching-for-turbo) from 2.3.11 to 2.3.13.
- [Release notes](https://github.com/rharkor/caching-for-turbo/releases)
- [Commits](https://github.com/rharkor/caching-for-turbo/compare/v2.3.11...v2.3.13)

---
updated-dependencies:
- dependency-name: rharkor/caching-for-turbo
  dependency-version: 2.3.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2026-04-15 02:51:41 +05:30

35 lines
928 B
YAML

name: Package Test
permissions:
contents: read
on:
workflow_call:
inputs:
package:
required: true
type: string
jobs:
unit-test:
name: Unit Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 20
cache: yarn
- run: yarn install --immutable
- name: Cache for Turbo
uses: rharkor/caching-for-turbo@v2.3.13
with:
cache-prefix: turbo-cache-
- name: Unit Test
run: yarn test:unit --filter=./packages/${{ inputs.package }}
timeout-minutes: 1
- name: Collect and upload the coverage report
uses: codecov/codecov-action@v6
with:
files: ./packages/${{ inputs.package }}/coverage/lcov.info
flags: ${{ inputs.package }}-unit,${{ inputs.package }}
token: ${{ secrets.CODECOV_TOKEN }}