-
Notifications
You must be signed in to change notification settings - Fork 437
59 lines (48 loc) · 1.41 KB
/
ci.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
name: CI
on:
pull_request:
push:
branches:
- "main"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
package:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
clean: false
fetch-depth: 0
# TODO: Checkout submodules individually to speed up CI.
# We just need to figure out the Git authentication story.
submodules: "recursive"
- uses: pnpm/action-setup@v3
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: "20"
cache: "pnpm"
- name: Install Emscripten
uses: mymindstorm/setup-emsdk@v14
with:
version: "3.1.37"
actions-cache-folder: "emsdk-cache"
- name: Install dependencies
run: pnpm install
- name: Run tests
run: pnpm test
- name: Package extensions
run: pnpm package-extensions
env:
SHOULD_PUBLISH: ${{ github.ref_name == 'main' }}
S3_BUCKET: ${{ secrets.S3_BUCKET }}
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
- name: Enforce sorted `extensions.toml`
run: git diff --exit-code -- extensions.toml
- name: Enforce sorted `.gitmodules`
run: git diff --exit-code -- .gitmodules