Skip to content

Commit 21dd32e

Browse files
authored
ci(): Add more actions to the CI (fabricjs#6842)
1 parent 7efa022 commit 21dd32e

File tree

6 files changed

+104
-0
lines changed

6 files changed

+104
-0
lines changed

.github/workflows/browser-chrome.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# This workflow will do a clean install of node dependencies, build the library, run testem for chrome
2+
3+
name: Unit tests on Chrome
4+
5+
on:
6+
push:
7+
branches: [ master ]
8+
pull_request:
9+
branches: [ master ]
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Unit tests on Chrome
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: 14.x
20+
- run: npm ci
21+
- run: npm run build:fast
22+
- name: Run headless test
23+
uses: GabrielBB/xvfb-action@v1
24+
with:
25+
run: npm run testem:ci -- --port 8080 -f testem.json -l Chrome

.github/workflows/visual-node.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Node visual unit tests
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
node-version: [12.x, 14.x, 15.x]
19+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
20+
steps:
21+
- uses: actions/checkout@v2
22+
- run: sudo apt-get install libgif-dev libpng-dev libpango1.0-dev libjpeg8-dev librsvg2-dev libcairo2-dev
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v1
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
- run: npm ci
28+
- run: npm run build:fast
29+
- run: npm run test:visual
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# This workflow will do a clean install of node dependencies, build the library, run testem visual tests for Chrome
2+
3+
name: Visual unit tests on Chrome
4+
5+
on:
6+
push:
7+
branches: [ master ]
8+
pull_request:
9+
branches: [ master ]
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Visual unit tests on Chrome
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: 14.x
20+
- run: npm ci
21+
- run: npm run build:fast
22+
- name: Run headless test
23+
uses: GabrielBB/xvfb-action@v1
24+
with:
25+
run: npm run testem:ci --port 8080 -f testem-visual.json -l Chrome
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# This workflow will do a clean install of node dependencies, build the library, run testem visual tests for Firefox
2+
3+
name: Visual unit tests on Firefox
4+
5+
on:
6+
push:
7+
branches: [ master ]
8+
pull_request:
9+
branches: [ master ]
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Unit tests on Firefox
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: 14.x
20+
- run: npm ci
21+
- run: npm run build:fast
22+
- name: Run headless test
23+
uses: GabrielBB/xvfb-action@v1
24+
with:
25+
run: npm run testem:ci --port 8080 -f testem-visual.json -l Firefox
File renamed without changes.

0 commit comments

Comments
 (0)