forked from CorentinTh/enclosed
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 836 Bytes
/
ci-app-server.yaml
File metadata and controls
42 lines (33 loc) · 836 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
name: CI - App Server
on:
pull_request:
push:
branches:
- main
jobs:
ci-app-server:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/app-server
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 22
corepack: true
cache: 'pnpm'
- name: Install dependencies
run: pnpm i
working-directory: ./
- name: Run linters
run: pnpm lint
- name: Type check
run: pnpm typecheck
- name: Run unit test
run: pnpm test
- name: Build the app for Node.js
run: pnpm build:node
- name: Build the app for Cloudflare
run: pnpm build:cloudflare