mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 20:29:12 +02:00
f615035926
* Update GitHub Actions CI to include pull requests Update GitHub Actions CI to include pull requests, and limit both triggers to the master branch. * Run coveralls publish on bash Always run coveralls publish on bash - on Windows, the default shell is PowerShell but that is not appropriate for this workflow. * Run GitHub Actions against the 2.9 branch * Temporarily remove macOS continuous integration Chrome is unhappy executing the tests after an update to macOS Catalina. Remove macOS CI until that can be resolved.
59 lines
1.3 KiB
YAML
59 lines
1.3 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- "2.9"
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- "2.9"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest]
|
|
fail-fast: false
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v1
|
|
- name: Setup xvfb
|
|
run: |
|
|
Xvfb :99 -screen 0 1024x768x24 &
|
|
echo "::set-env name=DISPLAY:::99.0"
|
|
if: runner.os == 'Linux'
|
|
- name: Install gulp
|
|
run: npm install --global gulp
|
|
if: runner.os == 'macOS'
|
|
- name: Install chrome
|
|
run: |
|
|
brew update
|
|
brew cask install google-chrome
|
|
if: runner.os == 'macOS'
|
|
- name: Select browsers
|
|
run: |
|
|
if [ "${{ runner.os }}" == "macOS" ]; then
|
|
echo "::set-env name=BROWSERS::--browsers chrome"
|
|
fi
|
|
shell: bash
|
|
- name: Build and Test
|
|
run: |
|
|
npm install
|
|
gulp build
|
|
gulp test --coverage ${BROWSERS}
|
|
- name: Package
|
|
run: |
|
|
gulp docs
|
|
gulp package
|
|
gulp bower
|
|
- name: Publish Test Results
|
|
run: cat ./coverage/lcov.info | ./node_modules/.bin/coveralls
|
|
shell: bash
|
|
continue-on-error: true
|