From b0c4aea12a6d47b525beaa1acffe07a9dbe4994a Mon Sep 17 00:00:00 2001 From: Lloyd Benson Date: Thu, 12 Nov 2020 12:37:42 -0600 Subject: [PATCH] switch to use github actions (#47) * setup github action for a module * get rid of hapi here * os is unnecessary * spaces vs / * get rid of travis in favor of github actions * just keep it with a simple name * change to ci --- .github/workflows/test.yml | 23 +++++++++++++++++++++++ .travis.yml | 7 ------- 2 files changed, 23 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100755 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..ca840cf --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,23 @@ +name: ci + +on: [push, pull_request] + +jobs: + test: + strategy: + fail-fast: false + matrix: + os: [ubuntu, windows, macos] + node: ['*', '14', '12'] + + runs-on: ${{ matrix.os }}-latest + name: ${{ matrix.os }} node@${{ matrix.node }} + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node }} + - name: install + run: npm install + - name: test + run: npm test diff --git a/.travis.yml b/.travis.yml deleted file mode 100755 index c8e6f82..0000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -version: ~> 1.0 - - -import: - - hapijs/ci-config-travis:node_js.yml@main - - hapijs/ci-config-travis:install.yml@main - - hapijs/ci-config-travis:os.yml@main