BUILD github actions

pull/393/head
Benjamin Levesque 4 years ago
parent c825caa91c
commit e37c78dc4f
No known key found for this signature in database
GPG Key ID: 765E3CB147AA4D4A
  1. 24
      .github/workflows/ci.yml
  2. 28
      .travis.yml
  3. 2
      config/karma.conf.js

@ -0,0 +1,24 @@
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.11.0
uses: actions/setup-node@v1
with:
node-version: 12.11.0
- run: npm install
- run: npm run lint
- run: npm run build
- run: npm run test:node
- name: Run headless test
uses: GabrielBB/xvfb-action@v1
with:
run: npm run test:browser
- run: npm run test:typings
- run: npm run test:deps
- run: npm run test:size
- run: npm run build:size

@ -1,28 +0,0 @@
language: node_js
sudo: required
cache: false
os:
- linux
node_js:
- "12.11.0"
services:
- xvfb
addons:
chrome: stable
firefox: stable
script:
- echo "versions"
- openssl version
- node -v
- npm install
- npm run lint
- npm run build
- npm run test:node
- travis_retry npm run test:browser
- npm run test:typings
- npm run test:deps
- npm run test:size
- npm run build:size

@ -24,7 +24,7 @@ const configuration = {
const browsers = availableBrowser
.filter(b => !['PhantomJS', 'FirefoxAurora', 'FirefoxNightly'].includes(b))
.map(b => {
if (b === 'Chrome') return 'Chrome_travis_ci';
if (b === 'Chrome' || b === 'Chromium') return 'Chrome_travis_ci';
else return b;
});
return browsers;

Loading…
Cancel
Save