From 05bc3ed92343ce1760b6e0344b0d192d13abe947 Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Tue, 26 Oct 2021 09:58:20 +0200 Subject: [PATCH] Update build and test workflow --- .github/workflows/{test.yml => ci.yml} | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) rename .github/workflows/{test.yml => ci.yml} (62%) diff --git a/.github/workflows/test.yml b/.github/workflows/ci.yml similarity index 62% rename from .github/workflows/test.yml rename to .github/workflows/ci.yml index 6cf7535..8530dcc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,6 @@ -name: CI +name: Build and test -on: [ push ] +on: [ push, pull_request ] jobs: build: @@ -9,14 +9,23 @@ jobs: strategy: matrix: - node-version: [10.x, 12.x, 14.x, 15.x] + node-version: [10.x, 12.x, 14.x, 15.x, 16.x] steps: - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm run build + + - uses: actions/upload-artifact@v2 + with: + name: build + path: dist/ + - run: npm run test