Skip to content

Commit

Permalink
Replace Travis workflow with GitHub action
Browse files Browse the repository at this point in the history
This keeps the existing matrix intact, but also adds node 14 and 16.
  • Loading branch information
lauraseidler committed Sep 29, 2021
1 parent b09a3c2 commit a235314
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 19 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Test with coverage

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node: [10, 12, 14, 16]
hapi: ["@hapi/hapi@18", "@hapi/hapi@19", "@hapi/hapi@20"]
exclude:
- node: 10
hapi: "@hapi/hapi@19"
- node: 10
hapi: "@hapi/hapi@20"

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- run: npm ci
- run: npm install ${{ matrix.hapi }}
- run: npm run coveralls
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

0 comments on commit a235314

Please sign in to comment.