Skip to content

chore: migrate to tsup #106

chore: migrate to tsup

chore: migrate to tsup #106

Workflow file for this run

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