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 ef7c77ea..e07565fb 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