Jukka Kurkela 7610def1c4
Remove set-env from actions (#8063)
* Remove set-env from CI

* Eanble macOs

* Another try on macOs, update npmpublish

* No xvfb-run on macOs

* Remove macos
2020-11-16 22:02:34 -05:00

68 lines
1.5 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@v2
- name: Use Node.js
uses: actions/setup-node@v1
- name: Build and Test
run: |
npm ci
npm run build
if [ "${{ runner.os }}" == "Windows" ]; then
npm test
elif [ "${{ runner.os }}" == "macOS" ]; then
npm test --browsers chrome,safari
else
xvfb-run --auto-servernum npm test
fi
shell: bash
- name: Package
run: |
npm run docs
npm run typedoc
npm pack
- name: Coveralls Parallel - Chrome
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: './coverage/chrome/lcov.info'
flag-name: ${{ matrix.os }}-chrome
parallel: true
- name: Coveralls Parallel - Firefox
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: './coverage/firefox/lcov.info'
flag-name: ${{ matrix.os }}-firefox
parallel: true
finish:
needs: build
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true