From: Alessandro Pio Ardizio Date: Sun, 7 Feb 2021 09:59:18 +0000 (+0100) Subject: Create pr.yml X-Git-Tag: v2.0.0-beta.2~84 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=9afc579283d91918bf25e831ecdfb458f97e6918;p=poolifier.git Create pr.yml --- diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 00000000..a055b0bf --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,25 @@ +name: NodeCI + +on: [pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x, 14.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 run test + env: + CI: true