ci: (RI-4198) Update CI runners #26
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: 🧪 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 | |
with: | |
bun-version: latest | |
- name: 🔵 Install Task | |
uses: arduino/setup-task@v2 | |
- name: 📦 Install package dependencies using lockfile | |
run: bun install --frozen-lockfile | |
- name: 🔨 Run build | |
run: bun run build | |
- name: 🔨 Compile binary for supported platforms | |
run: | | |
task compile | |
task compress | |
- name: 🧪 Run tests | |
run: bun run test |