Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(): refactor test workflows #8227

Merged
merged 9 commits into from
Sep 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions .github/workflows/browser-chrome.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/browser-firefox.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- run: npm run build -- -f
- run: npm run test:coverage && npm run test:visual:coverage
- run: npm run coverage:report
- uses: ShaMan123/lcov-reporter-action@v1.0.6
- uses: ShaMan123/lcov-reporter-action@v1.1.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
delete-old-comments: true
Expand Down
29 changes: 0 additions & 29 deletions .github/workflows/node-unit-tests.yml

This file was deleted.

52 changes: 52 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@

name: Unit Testing

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
browser:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
target: [chrome, firefox]
suite: [unit, visual]
steps:
- uses: actions/checkout@v2
- name: Unit tests on Chrome
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build -- -f
- name: Run ${{ matrix.target }} ${{ matrix.suite }} headless test
uses: GabrielBB/xvfb-action@v1
with:
run: npm run test -- -c ${{ matrix.target }} -s ${{ matrix.suite }}
node:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# For more information see:
# https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
# supported Node.js release schedule: https://nodejs.org/en/about/releases/
node-version: [16.x]
suite: [unit, visual]
steps:
- uses: actions/checkout@v2
- name: Install node-canvas
run: sudo apt-get install libgif-dev libpng-dev libpango1.0-dev libjpeg8-dev librsvg2-dev libcairo2-dev
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- name: Build
run: npm run build -- -f
- name: Run ${{ matrix.suite }} tests
run: npm run test -- -c node -s ${{ matrix.suite }}
29 changes: 0 additions & 29 deletions .github/workflows/visual-node.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/visual-test-chrome.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/visual-test-firefox.yml

This file was deleted.