chore: migrate to tsup #106
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: Build & Test | |
on: | |
push: | |
branches: | |
- main | |
- v1.x | |
- release/beta | |
pull_request: | |
branches: | |
- main | |
- v1.x | |
- release/beta | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
run-build-test: | |
name: Run Build & test | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
actions: write | |
steps: | |
- name: Check out git repository | |
uses: actions/checkout@v3 | |
- name: Set up Bun | |
uses: oven-sh/setup-bun@v2 | |
- name: Cache Bun dependencies | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.bun | |
bun.lockb | |
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }} | |
restore-keys: | | |
${{ runner.os }}-bun- | |
- name: Install dependencies | |
run: bun install | |
- name: Build | |
run: bun run build | |
- name: Test | |
run: bun run test |