From 28151c4e2d73f2671ca503f9e57dab0a1fccc836 Mon Sep 17 00:00:00 2001 From: Anthony Dumas Date: Sat, 4 Nov 2023 15:11:27 +0100 Subject: [PATCH] Update test.yml --- .github/workflows/test.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2ee392f..aace51e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,9 +1,25 @@ on: push: branches: - - 'main' + - 'master' jobs: + build: + runs-on: ubuntu-latest + name: Test CV Web Dumas + steps: + - uses: actions/checkout@v1 + - name: Install requirements + run: npm ci + - name: Run tests and collect coverage + run: npm run test + - name: Upload coverage reports to Codecov + run: | + # Replace `linux` below with the appropriate OS + # Options are `alpine`, `linux`, `macos`, `windows` + curl -Os https://uploader.codecov.io/latest/linux/codecov + chmod +x codecov + ./codecov -t ${CODECOV_TOKEN} deploy_to_main: name: Deploy app to the Multirisque main setup runs-on: self-hosted