From a62f4b3486c07ec63d6781512eba769bef099ed4 Mon Sep 17 00:00:00 2001 From: Patrick Hulce Date: Fri, 12 Feb 2021 13:03:45 -0600 Subject: [PATCH] chore: replace travis with github actions --- .github/workflows/ci.yml | 40 ++++++++++++++++++++++++++++++++++++++++ .travis.yml | 28 ---------------------------- 2 files changed, 40 insertions(+), 28 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..aa7a47a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,40 @@ +name: CI +on: + push: + branches: [master] + pull_request: + branches: [master] +jobs: + test: + name: ${{ matrix.name }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + include: + - pptr: 1.6.x + - pptr: 1.8.x + - pptr: 1.12.x + - pptr: 2.x.x + - pptr: 3.x.x + - pptr: 4.x.x + - pptr: 5.x.x + - pptr: 6.x.x + # We don't support these yet + # - pptr: 7.x.x + # - pptr: latest + steps: + - name: Run git checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Run nvm install 14 + uses: actions/setup-node@v1 + with: + node-version: 14.x + - run: npm install + - run: npm install "puppeteer@${{ matrix.pptr }}" + - run: npm install "@types/puppeteer@${{ matrix.pptr }}" || echo "No types available" + - run: npm run rebuild + - run: npm run test:lint + - run: npm run test:unit --coverage --runInBand --verbose diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6872a45..0000000 --- a/.travis.yml +++ /dev/null @@ -1,28 +0,0 @@ -dist: trusty -language: node_js -notifications: - email: false -node_js: - - v14 - - v10 -env: - - PPTR_OVERRIDE_VERSION=1.6.x - - PPTR_OVERRIDE_VERSION=1.8.x - - PPTR_OVERRIDE_VERSION=1.12.x - - PPTR_OVERRIDE_VERSION=2.x.x - - PPTR_OVERRIDE_VERSION=3.x.x - - PPTR_OVERRIDE_VERSION=4.x.x - - PPTR_OVERRIDE_VERSION=5.x.x - - PPTR_OVERRIDE_VERSION=latest -before_install: - - npm install -g npm@7 - - npm install -g coveralls nyc @patrickhulce/scripts -before_script: - - npm install -D "puppeteer@${PPTR_OVERRIDE_VERSION}" - - npm install -D "@types/puppeteer@${PPTR_OVERRIDE_VERSION}" || echo "No types available" -script: - - npm run rebuild - - npm run test:lint - - npm run test:unit --coverage --runInBand --verbose -after_success: - - cat coverage/lcov.info | coveralls || echo 'Failed to upload to coveralls...'