diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..37d6691 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,37 @@ +name: ๐Ÿงช Tests + +on: + push: + branches: + - main + pull_request: + branches: + - main + +concurrency: + group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.ref }}' + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: ๐Ÿ’ป Checkout current code ref + uses: actions/checkout@v4 + + - name: ๐ŸŸข Configure Bun on runner + uses: oven-sh/setup-bun@v1 + + - name: ๐Ÿ“ฆ Install package dependencies using lockfile + run: bun install --frozen-lockfile + + - name: ๐Ÿ”จ Run build + run: | + bun run build + bun run compile + + - name: ๐ŸŒท Run format, lint & check with Biome + run: | + bun run format + bun run lint + bun run check