-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (59 loc) · 1.73 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: macos-latest
timeout-minutes: 45
name: "Lint, Test, Build web extension"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 50
- name: Install pnpm
uses: pnpm/[email protected]
with:
version: "next-9"
- name: Install node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Install cargo
uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-apple-ios
- name: Get version
id: version
run: echo "VERSION=$(pnpm run --silent print-version)" >> "$GITHUB_OUTPUT"
- name: Cache cargo dependencies
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84
- name: Install wasm-pack
run: pnpm add -g wasm-pack
- name: Cache unidic
uses: actions/cache@v4
with:
path: crates/unidic/original
key: unidic-2.1.2
- name: Cache jmdict
uses: actions/cache@v4
with:
path: crates/yomikiri-dictionary-generator/jmdict/jmdict_english.xml
key: jmdict-english-xml-${{steps.version.outputs.output}}
- name: Construct
run: pnpm run construct:all
- name: Install pnpm deps
run: pnpm install
- name: Generate licenses
run: pnpm run generate-licenses
- name: Formatting
run: pnpm run check-format
- name: Lint
run: pnpm run lint
- name: Test
run: pnpm run test
- name: Build web
run: pnpm run build:chrome && pnpm run build:firefox && pnpm run build:ios