Skip to content

Commit 75550e9

Browse files
committed
ci: Create ci workflow
1 parent 81ce257 commit 75550e9

2 files changed

Lines changed: 48 additions & 0 deletions

File tree

.github/actions/setup/action.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Setup
2+
description: Setup the environment for the runner
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- uses: jdx/mise-action@dba19683ed58901619b14f395a24841710cb4925 # v4.1.0
8+
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
9+
with:
10+
path: ~/.bun/install/cache
11+
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}
12+
restore-keys: |
13+
${{ runner.os }}-bun-
14+
- run: bun install --frozen-lockfile
15+
shell: bash

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
permissions: {}
4+
5+
defaults:
6+
run:
7+
shell: bash
8+
9+
on:
10+
push:
11+
branches: [main]
12+
pull_request:
13+
14+
jobs:
15+
lint:
16+
runs-on: ubuntu-latest
17+
timeout-minutes: 30
18+
steps:
19+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
20+
with:
21+
persist-credentials: false
22+
- uses: ./.github/actions/setup
23+
- run: bun run lint
24+
25+
build:
26+
runs-on: ubuntu-latest
27+
timeout-minutes: 30
28+
steps:
29+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
30+
with:
31+
persist-credentials: false
32+
- uses: ./.github/actions/setup
33+
- run: bun run bundle

0 commit comments

Comments
 (0)