From f932e40afed47dc2eba9572d19b180b9dee0f782 Mon Sep 17 00:00:00 2001 From: Jonas Pauthier Date: Sun, 15 Nov 2020 19:59:31 +0100 Subject: [PATCH] Create ci-plugin.yml (#153) * Create ci-plugin.yml * Remove .travis.yml --- .github/workflows/ci-plugin.yml | 30 ++++++++++++++++++++++++++++++ .travis.yml | 8 -------- 2 files changed, 30 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/ci-plugin.yml delete mode 100755 .travis.yml diff --git a/.github/workflows/ci-plugin.yml b/.github/workflows/ci-plugin.yml new file mode 100644 index 0000000..7d21056 --- /dev/null +++ b/.github/workflows/ci-plugin.yml @@ -0,0 +1,30 @@ +name: ci + +on: + push: + branches: + - master + pull_request: + +jobs: + test: + strategy: + fail-fast: false + matrix: + os: [ubuntu, windows, macos] + node: ['*', '14', '12'] + hapi: ['20', '19'] + + runs-on: ${{ matrix.os }}-latest + name: ${{ matrix.os }} node@${{ matrix.node }} hapi@${{ matrix.hapi }} + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node }} + - name: install + run: npm install + - name: install hapi + run: npm install @hapi/hapi@${{ matrix.hapi }} + - name: test + run: npm test diff --git a/.travis.yml b/.travis.yml deleted file mode 100755 index baf8fe9..0000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -version: ~> 1.0 - - -import: - - hapijs/ci-config-travis:node_js.yml@main - - hapijs/ci-config-travis:install_plugin.yml@main - - hapijs/ci-config-travis:os.yml@main - - hapijs/ci-config-travis:env.yml@main