From 91756a942ef9d0a78006b8358c5c6cc18ed975f4 Mon Sep 17 00:00:00 2001 From: Celine Kurpershoek Date: Thu, 16 Jan 2020 09:47:51 +0100 Subject: [PATCH] feat(actions): add first action to run tests --- .github/workflows/ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..1773e8d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +name: Node CI + +on: + push: + branches: + - master + - greenkeeper/* + pull_request: + branches: + - master + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [8.x, 10.x, 12.x, 13.x] + os: [ubuntu-latest, windows-latest, macOS-latest] + + steps: + - uses: actions/checkout@v1 + - name: Run tests + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: npm install and test + run: | + node --version + npm --version + npm ci + npm test \ No newline at end of file