From 65b8a9e35877f77208fa7860c0fe6ee4bb6d21c5 Mon Sep 17 00:00:00 2001 From: Jason Cheatham Date: Thu, 25 Nov 2021 20:52:32 -0500 Subject: [PATCH] Add GitHub Action CI task --- .github/workflows/ci.yml | 38 ++++++++++++++++++++++++++++++++++++++ .travis.yml | 35 ----------------------------------- 2 files changed, 38 insertions(+), 35 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 000000000..c89cbab25 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,38 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + include: + - node-version: 16 + full-ci: true + - node-version: 14 + full-ci: false + - node-version: 12 + full-ci: false + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - if: ${{ matrix.full-ci }} + run: npm test config=@ci + env: + # Please get your own free key if you want to test yourself + BROWSERSTACK_USERNAME: sitepenlabs1 + BROWSERSTACK_ACCESS_KEY: xm1uYrJuV3gZMJqCyZJX + - if: ${{ ! matrix.full-ci }} + run: npm test + - if: ${{ matrix.full-ci }} + uses: codecov/codecov-action@v2 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6bb14e3ae..000000000 --- a/.travis.yml +++ /dev/null @@ -1,35 +0,0 @@ -sudo: false -language: node_js -node_js: - - lts/* - - node -env: - global: - # Please get your own free key if you want to test yourself - - BROWSERSTACK_USERNAME=sitepenlabs1 - - BROWSERSTACK_ACCESS_KEY=xm1uYrJuV3gZMJqCyZJX - matrix: - - INTERN_ARGS="environments=" - - INTERN_ARGS="" -matrix: - exclude: - # Exlude the matrix run with node latest && INTERN_ARGS="" (which means - # only include the one that does *not* run tests on remote environments) - - node_js: node - env: INTERN_ARGS="" - # Exlude the matrix run with node lts && INTERN_ARGS="environments=" (which - # means only include the one that does *not* run tests on remote - # environments) - - node_js: lts/* - env: INTERN_ARGS="environments=" -cache: - directories: - - node_modules -install: - - npm install - - npm install -g codecov -script: - - npm run ci && codecov -notifications: - slack: - secure: C/WcvljPsSP1xYcV+YplPdHzzKDu1YmFvcHkWrkY/pNoTt1N+mqOM6sDjvD8VCyYtoC5+QaVZUKAXSb8j1J3gtNiRsaoSauikHhN8t1z1ENulrqxBpYbQ1MatxxFM7zDeVaRGlqu3vnEGZqsrJX5mwS8+N8Gy0T8deMNCdnJTAg=