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;