-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (48 loc) · 1.49 KB
/
branch.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
name: Run tests on branch
on:
workflow_dispatch:
push:
branches-ignore:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 📂 Checkout project
uses: actions/checkout@v2
- name: Install Node
uses: actions/setup-node@v2
with:
node-version: 14
- name: 🔨 Download Node dependencies
run: |
npm install
- name: 🧹 Run static code analysis
run: |
npm run lint
- name: 🔨 Build Svelte project
run: |
npm run build
- name: Get database
uses: actions/checkout@v2
with:
ref: data-branch
path: data
- name: Download extra runtime dependencies
run: |
curl -s --location --output build/sql-wasm.js https://unpkg.com/sql.js@latest/dist/sql-wasm.js
curl -s --location --output build/sql-wasm.wasm https://unpkg.com/sql.js@latest/dist/sql-wasm.wasm
curl -s --location --output build/tabulator.min.css.map https://unpkg.com/tabulator-tables@latest/dist/css/tabulator.min.css.map
- name: 💎 Install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- name: 🔨 Build Jekyll site
uses: limjh16/jekyll-action-ts@v2
with:
enable_cache: true
format_output: true
- name: Run Lighthouse CI
run: |
npm install -g @lhci/cli@0.8.x
lhci autorun --upload.target=temporary-public-storage