Skip to content

Commit c9d1fb4

Browse files
committed
feat: add GitHub Actions workflows for build and PR testing
1 parent ffb478c commit c9d1fb4

8 files changed

Lines changed: 81 additions & 15 deletions

File tree

.github/workflows/build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: build
2+
on:
3+
push:
4+
branches:
5+
- dev
6+
jobs:
7+
build-and-deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout 🛎️
11+
uses: actions/checkout@v4
12+
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: 16.20.2
16+
cache: yarn
17+
cache-dependency-path: yarn.lock
18+
19+
- name: Setup Yarn v1
20+
run: |
21+
corepack enable
22+
corepack prepare yarn@1.22.22 --activate
23+
yarn --version
24+
25+
- name: Install dependencies 📦
26+
run: yarn install --frozen-lockfile
27+
28+
- name: Lint 🧹
29+
run: yarn lint
30+
31+
- name: Build 🔧
32+
run: yarn build
33+
34+
- name: Test 🧪
35+
run: yarn test --testPathIgnorePatterns 'components/dictionaries'

.github/workflows/pr.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
on: ["pull_request"]
2+
3+
name: Build and Test PR
4+
5+
jobs:
6+
build:
7+
name: Build
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout 🛎️
11+
uses: actions/checkout@v4
12+
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: 16.20.2
16+
cache: yarn
17+
cache-dependency-path: yarn.lock
18+
19+
- name: Setup Yarn v1
20+
run: |
21+
corepack enable
22+
corepack prepare yarn@1.22.22 --activate
23+
yarn --version
24+
25+
- name: Install dependencies 📦
26+
run: yarn install --frozen-lockfile
27+
28+
- name: Lint 🧹
29+
run: yarn lint
30+
31+
- name: Build 🔧
32+
run: yarn build
33+
34+
- name: Test 🧪
35+
run: yarn test --testPathIgnorePatterns 'components/dictionaries'

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v16.20.2

.travis.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,6 @@
2727
"selecion",
2828
"sync-services",
2929
"word-editor"
30-
]
30+
],
31+
"js/ts.tsdk.path": "node_modules/typescript/lib"
3132
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131
]
3232
},
3333
"engines": {
34-
"node": ">= 11.0.0",
35-
"npm": ">= 6.9.0"
34+
"node": "<= 16.20.2"
3635
},
3736
"repository": {
3837
"type": "git",
@@ -186,5 +185,6 @@
186185
"webpack-cli": "^3",
187186
"webpack-dev-server": "^3",
188187
"yargs": "^14.0.0"
189-
}
188+
},
189+
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
190190
}

scripts/pdf.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ exec(
3636
'Error: download failed'
3737
)
3838

39+
shell.rm('-rf', 'pdfjs.tar.gz')
40+
3941
shell.cd('./' + cacheDir)
4042

4143
startUpgrade()

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4571,9 +4571,9 @@ can-use-dom@^0.1.0:
45714571
integrity sha1-IsxKNKCrxDlQ9CxkEQJKP2NmtFo=
45724572

45734573
caniuse-lite@^1.0.30000989, caniuse-lite@^1.0.30001087, caniuse-lite@^1.0.30001093:
4574-
version "1.0.30001589"
4575-
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001589.tgz"
4576-
integrity sha512-vNQWS6kI+q6sBlHbh71IIeC+sRwK2N3EDySc/updIGhIee2x5z00J4c1242/5/d6EpEMdOnk/m+6tuk4/tcsqg==
4574+
version "1.0.30001788"
4575+
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001788.tgz"
4576+
integrity sha512-6q8HFp+lOQtcf7wBK+uEenxymVWkGKkjFpCvw5W25cmMwEDU45p1xQFBQv8JDlMMry7eNxyBaR+qxgmTUZkIRQ==
45774577

45784578
capture-exit@^2.0.0:
45794579
version "2.0.0"

0 commit comments

Comments
 (0)