From 459de47dbf0e33f5f3126ed3e04285e8d7edd3f0 Mon Sep 17 00:00:00 2001 From: Diogo Torres Date: Fri, 17 Sep 2021 12:35:43 +0100 Subject: [PATCH] Add support for github actions --- .github/workflows/tests.yaml | 23 +++++++++++++++++++++++ .travis.yml | 7 ------- 2 files changed, 23 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/tests.yaml delete mode 100755 .travis.yml diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 0000000..13526e6 --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,23 @@ +name: Tests + +on: [push] + +jobs: + unit: + runs-on: ubuntu-latest + strategy: + matrix: + node: [ '8', '12', '14' ] + + container: + image: node:${{ matrix.node }}-alpine + + steps: + - uses: actions/checkout@v2 + - name: Install dependencies + run: | + echo "::group::Install project dependencies" + yarn install --frozen-lockfile + echo "::endgroup::" + - run: yarn lint + - run: yarn test diff --git a/.travis.yml b/.travis.yml deleted file mode 100755 index 8f8b2ca..0000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -language: node_js - -node_js: - - 8 - - 10 - - 12 - - 14