From cfdf019c9fbdd1920829f51e78d786107045d6e0 Mon Sep 17 00:00:00 2001 From: Florent Jaby Date: Tue, 4 May 2021 20:01:08 +0200 Subject: [PATCH] run tests for PRs --- .github/workflows/deploy-branches-and-prs.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/deploy-branches-and-prs.yml b/.github/workflows/deploy-branches-and-prs.yml index ce6168183..07c8a844e 100644 --- a/.github/workflows/deploy-branches-and-prs.yml +++ b/.github/workflows/deploy-branches-and-prs.yml @@ -10,6 +10,17 @@ on: - "*" jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: "14.12" + - run: npm ci + - run: npm test -- --ci + deploy-dev: # This workflow is only of value to the CovidTrackerFr/vitemadose-front repository and # would always fail in forks, so we limit this job to CovidTrackerFr/vitemadose-front