Merge pull request #748 from KaiVolland/ol8 #123
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |