forked from Automattic/node-canvas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
83 additions
and
56 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,80 @@ | ||
name: Test | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
Linux: | ||
name: Test on Linux | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node: [10, 12, 14] | ||
steps: | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- uses: actions/checkout@v2 | ||
- name: Install Dependencies | ||
run: | | ||
sudo apt update | ||
sudo apt install -y libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev librsvg2-dev | ||
- name: Install | ||
run: npm install --build-from-source | ||
- name: Test | ||
run: npm test | ||
|
||
Windows: | ||
name: Test on Windows | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
node: [10, 12, 14] | ||
steps: | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- uses: actions/checkout@v2 | ||
- name: Install Dependencies | ||
run: | | ||
Invoke-WebRequest "http://ftp.gnome.org/pub/GNOME/binaries/win64/gtk+/2.22/gtk+-bundle_2.22.1-20101229_win64.zip" -OutFile "gtk.zip" | ||
Expand-Archive gtk.zip -DestinationPath "C:\GTK" | ||
Invoke-WebRequest "https://downloads.sourceforge.net/project/libjpeg-turbo/2.0.4/libjpeg-turbo-2.0.4-vc64.exe" -OutFile "libjpeg.exe" -UserAgent NativeHost | ||
.\libjpeg.exe /S | ||
- name: Install | ||
run: npm install --build-from-source | ||
- name: Test | ||
run: npm test | ||
|
||
macOS: | ||
name: Test on macOS | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
node: [10, 12, 14] | ||
steps: | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- uses: actions/checkout@v2 | ||
- name: Install Dependencies | ||
run: | | ||
brew update | ||
brew install pkg-config cairo pango libpng jpeg giflib librsvg | ||
- name: Install | ||
run: npm install --build-from-source | ||
- name: Test | ||
run: npm test | ||
|
||
Lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- uses: actions/checkout@v2 | ||
- name: Install | ||
run: npm install --ignore-scripts | ||
- name: Lint | ||
run: npm run lint | ||
- name: Lint Types | ||
run: npm run dtslint |
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
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