From 293c37c643e573e0019945b6b9251e90738aa2b2 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Wed, 8 Jan 2020 22:44:47 +0100 Subject: [PATCH] Update and rename blank.yml to build.yml --- .github/workflows/{blank.yml => build.yml} | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) rename .github/workflows/{blank.yml => build.yml} (90%) diff --git a/.github/workflows/blank.yml b/.github/workflows/build.yml similarity index 90% rename from .github/workflows/blank.yml rename to .github/workflows/build.yml index ef7c77e..e07565f 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/build.yml @@ -8,8 +8,30 @@ on: - '*.*' jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x, 13.x] + + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: npm install, build, and test + run: | + npm ci + npm run build --if-present + npm test + env: + CI: true + create-release: runs-on: [ubuntu-latest] + needs: [test] steps: - name: Checkout