chore: β‘ Run tests weekly #9
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: Build & Test the package | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: "0 0 * * SUN" # Run every 00:00 on Sunday | |
workflow_dispatch: | |
jobs: | |
test: | |
name: Test Package | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Setting up node v18.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install --no-frozen-lockfile | |
- name: Build Page using tsup | |
run: pnpm run build | |
- name: Run tests | |
run: pnpm run test |