-
Notifications
You must be signed in to change notification settings - Fork 2
62 lines (49 loc) · 1.48 KB
/
checks.yml
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
52
53
54
55
56
57
58
59
60
61
62
name: Checks
on:
pull_request:
# allow workflow to be called from other workflows
workflow_call:
# allow workflow to be called from github.com UI
workflow_dispatch:
push:
branches-ignore: [develop]
concurrency:
group: checks-${{ github.workflow }}-${{ github.ref }}
defaults:
run:
shell: bash
env:
NODE_OPTIONS: '--no-warnings'
ACTIONS_RUNNER_DEBUG: true
jobs:
checks:
name: '🔎 Checks'
timeout-minutes: 3
runs-on: ['ubuntu-latest']
steps:
- name: '🔑 Checkout'
uses: actions/[email protected]
- name: '🐰 Setup Bun'
uses: oven-sh/setup-bun@v1
with:
bun-version: 'latest'
- name: 'Setup Biome'
uses: biomejs/setup-biome@v1
with:
version: 'latest'
# if lint fails no need to continue
- name: '🧹 Lint'
continue-on-error: false
run: biome ci .
- name: '📦 Install Dependencies'
run: bun install --frozen-lockfile
- name: '🧪 Typecheck'
run: bunx tsc --project tsconfig.json --noEmit
- name: '🔧 Build TypeScript App'
run: bun run build
- name: '🏗 Build Indexer Image'
run: |
docker compose --file='compose.yml' --project-name='efp' up --build --abort-on-container-exit --no-start indexer
- name: '🏗 Build Database Image'
run: |
docker compose --file='compose.yml' --project-name='efp' up --build --abort-on-container-exit --no-start database