diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..688440b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,49 @@ +name: CI + +on: + - push + - pull_request + +jobs: + lint: + name: Linting Checks + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup NodeJs + uses: actions/setup-node@v1 + with: + node-version: "14" + + - name: Install Dependencies + run: npm ci + + - name: Run Linting Checks + run: npm run lint + test: + strategy: + fail-fast: true + matrix: + os: + - ubuntu-latest + node_version: + - "14" + - "12" + name: Test with Node ${{ matrix.node_version }} on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup NodeJs + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node_version }} + + - name: Install Dependencies + run: npm ci + + - name: Run Tests + run: npm run test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a72c377..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: node_js -cache: - directories: - - node_modules -node_js: - - "node" - - "lts/*" - - "12" - - "10" -script: - - npm run lint - - npm test