From a748590258aff1deebecc1d302a934902fc61319 Mon Sep 17 00:00:00 2001 From: Alessandro Pio Ardizio Date: Sun, 7 Feb 2021 10:59:31 +0100 Subject: [PATCH] Create pullrequest.yml --- .github/workflows/pullrequest.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/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 -- 2.34.1