From e37c78dc4f2e9cb3f8d8890bd31dadcfcb8fa937 Mon Sep 17 00:00:00 2001 From: Benjamin Levesque <14175665+benjlevesque@users.noreply.github.com> Date: Fri, 19 Mar 2021 12:31:56 +0100 Subject: [PATCH] BUILD github actions --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ .travis.yml | 28 ---------------------------- config/karma.conf.js | 2 +- 3 files changed, 25 insertions(+), 29 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e129983 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6366549..0000000 --- a/.travis.yml +++ /dev/null @@ -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 diff --git a/config/karma.conf.js b/config/karma.conf.js index e0707cf..a21c5a9 100644 --- a/config/karma.conf.js +++ b/config/karma.conf.js @@ -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;