Skip to content

Ajout du suivi de la couverture de code #950

Ajout du suivi de la couverture de code

Ajout du suivi de la couverture de code #950

Workflow file for this run

name: Node applications
on:
push:
branches:
- master
paths:
- 'graphql/**'
- 'front/**'
- 'export/**'
- '.github/workflows/node.yml'
pull_request:
paths:
- 'graphql/**'
- 'front/**'
- 'export/**'
- '.github/workflows/node.yml'
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
app: [front, graphql, export]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
- name: Install and test
working-directory: ${{ matrix.app }}
run: npm clean-install-test --no-audit --no-fund
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
base-path: ${{ matrix.app }}
parallel: true
flag-name: run-${{ join(matrix.*, ' - ') }}
- name: Build (if necessary)
working-directory: ${{ matrix.app }}
run: npm run build --if-present
finish:
needs: build
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
parallel-finished: true
carryforward: "run-front,run-graphql,run-export"