chore: tests (#4) #2
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: ⚡ Coverage badges generation | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
coverage-badges-generation: | |
name: 📣 Coverage badges generation | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: 🛑 Cancel Previous Runs | |
uses: styfle/cancel-workflow-action@0.12.1 | |
- name: ⬇️ Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: 📦 Setup bun | |
uses: oven-sh/setup-bun@v1 | |
- name: ⎔ Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.node-version' | |
registry-url: 'https://registry.npmjs.org' | |
# cache: 'bun' | |
cache-dependency-path: ./package.json | |
- name: 📥 Install deps | |
run: bun install --frozen-lockfile | |
- name: 🔍 Tests | |
run: bun run test-ci | |
- name: 🥁 Generating coverage badges | |
uses: jpb06/coverage-badges-action@latest |