From: Alessandro Pio Ardizio Date: Sun, 7 Feb 2021 09:59:31 +0000 (+0100) Subject: Create pullrequest.yml X-Git-Tag: v2.0.0-beta.2~83 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=a748590258aff1deebecc1d302a934902fc61319;p=poolifier.git Create pullrequest.yml --- diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml new file mode 100644 index 00000000..a055b0bf --- /dev/null +++ b/.github/workflows/pullrequest.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