-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update mapnik + port CI build to GH actions (n-peugnet#1)
* Port CI build to GitHub actions As travis is not free for opensource project anymore and the appveyor build seems to be down also. Updated node to more current version. * Disable setup-node cache as package-lock.json is not commited in git * Upgrade node-mapnik to 4.5 as previous versions do not support node >= 10 * Really build on Windows and include really old Nodejs version only for Ubuntu * Nodejs 8 is too old for the Universal build of mapnik * Consider Nodejs 14.x as an old version + add 20.x Nodejs 14 it is not supported anymore, and 20.x is current LTS * We don't care about Windows, try on MacOs though * Remove travis build (doesn't seem to run anymore) + replace badges with GH actions
- Loading branch information
Showing
4 changed files
with
41 additions
and
23 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs | ||
|
||
name: build | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
build: | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
node-version: [16.x, 18.x, 20.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
include: | ||
- os: ubuntu-latest | ||
node-version: 14.x | ||
- os: ubuntu-latest | ||
node-version: 12.x | ||
- os: ubuntu-latest | ||
node-version: 10.x | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
# Can not use cache as package-lock.json is not commited in Git | ||
# cache: 'npm' | ||
- run: npm install --fallback-to-build=false | ||
- run: npm test |
This file was deleted.
Oops, something went wrong.
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
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