-
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1015 Bytes
/
dev.yml
File metadata and controls
51 lines (42 loc) · 1015 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Development
on:
push:
branches: [dev]
jobs:
setup:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.npm
${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
install:
needs: setup
runs-on: self-hosted
steps:
- run: bun install
lint:
needs: install
runs-on: self-hosted
steps:
- run: bun run lint
tsc:
needs: install
runs-on: self-hosted
steps:
- run: bun run type-check
build:
needs: install
runs-on: self-hosted
steps:
- run: |
echo "${{ secrets.ENV_FILE }}" > .env.local
- run: bun run build:dev