-
Notifications
You must be signed in to change notification settings - Fork 27
84 lines (70 loc) · 2.12 KB
/
on-push-master.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
77
78
79
80
81
82
83
84
name: Run coveralls
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Cache Node.js modules 💾
uses: actions/cache@v3
with:
path: |
node_modules
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Cache ext 💾
uses: actions/cache@v3
with:
path: |
ext-6.2.0
ext-6.2.0-gpl.zip
key: ${{ runner.OS }}-node-${{ hashFiles('resources/external/ext-all.js') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install dependencies ⏬
run: npm ci
- name: Download extjs and geoext
run: |
if (test ! -f ext-6.2.0-gpl.zip); then wget -q http://cdn.sencha.com/ext/gpl/ext-6.2.0-gpl.zip -O ext-6.2.0-gpl.zip; fi
if (test ! -d ext-6.2.0); then unzip -qo ext-6.2.0-gpl.zip; fi
wget -q https://github.com/geoext/geoext3/archive/master.zip -O geoext3-master.zip
unzip -qo geoext3-master.zip
- name: Install ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.6'
- name: Install jsduck
run: gem install jsduck
- name: Cleanup and prepare pages
run: |
rm -rf master
mkdir -p master/docs
mkdir -p master/docs-w-ext
cp -r examples master/
cp -r resources master/
cp -r src master/
npm run generate:docs:master
npm run generate:docs-w-ext:master
- name: Deploy gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./master
destination_dir: ./master
- name: Generate coverage 🧪
run: npm run ci-coverage
- name: Publish to coveralls ⭐
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}