Skip to content

Commit

Permalink
Add GitHub Action CI task
Browse files Browse the repository at this point in the history
  • Loading branch information
jason0x43 committed Nov 26, 2021
1 parent ca3a9d1 commit 65b8a9e
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 35 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
35 changes: 0 additions & 35 deletions .travis.yml

This file was deleted.

0 comments on commit 65b8a9e

Please sign in to comment.