-
Notifications
You must be signed in to change notification settings - Fork 34
55 lines (44 loc) · 1.61 KB
/
Copy pathfunctions-compiler.yml
File metadata and controls
55 lines (44 loc) · 1.61 KB
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
name: Functions Compiler
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
functions-compiler:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/functions-compiler
steps:
- name: Checkout code
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- name: Wix gateway proxy (mandatory)
uses: ./.github/actions/wix-gateway-proxy
- name: Setup Bun
id: setup-bun
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: latest
- name: Cache Bun dependencies
uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-${{ steps.setup-bun.outputs.bun-version }}-${{ hashFiles('**/bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-${{ steps.setup-bun.outputs.bun-version }}-
- name: Install dependencies
run: bun install --frozen-lockfile
working-directory: .
- name: Run typecheck
run: bun run typecheck
# The suite compiles real npm packages and executes the output in workerd
# (miniflare), so it needs the registry and a few minutes.
- name: Run tests
run: bun run test
# Proves the published tarball carries every runtime asset: the shims and
# the .ts modules the esbuild plugins read as text.
- name: Build the publishable package
run: bun run build
- name: Verify packaged assets
run: bun run scripts/verify-package.ts