Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ajout du suivi de la couverture de code #1033

Merged
merged 6 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,24 @@ jobs:
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"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ sails/.tmp
nodemon.dev.json
/.idea/
/.run/

coverage/
2 changes: 1 addition & 1 deletion export/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"npm": ">=8"
},
"scripts": {
"test": "jest",
"test": "jest --collectCoverage --coverageReporters html --coverageReporters text-summary --coverageReporters lcovonly --detectOpenHandles",
"start": "node src/app.js",
"dev": "npx dotenv -e ../stylo.env npm run start",
"prod": "NODE_ENV=production node --heapsnapshot-signal=SIGUSR2 src/app.js"
Expand Down
3 changes: 1 addition & 2 deletions front/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module.exports = {
env: {
browser: true,
es2021: true,
'jest/globals': true,
},
extends: [
'eslint:recommended',
Expand All @@ -23,7 +22,7 @@ module.exports = {
parser: "jsonc-eslint-parser",
},
],
plugins: ['react', 'jest'],
plugins: ['react', 'vitest'],
settings: {
react: {
version: '16.13',
Expand Down
6 changes: 4 additions & 2 deletions front/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ COPY ./ /modules/
RUN set -ex \
&& apk update \
&& apk add linux-headers openssl-dev pcre-dev zlib-dev openssl abuild \
musl-dev libxslt libxml2-utils make mercurial gcc unzip git \
musl-dev libxslt libxml2-utils make gcc unzip git \
xz g++ \
# allow abuild as a root user \
&& printf "#!/bin/sh\\n/usr/bin/abuild -F \"\$@\"\\n" > /usr/local/bin/abuild \
&& chmod +x /usr/local/bin/abuild \
&& hg clone -r ${NGINX_VERSION}-${PKG_RELEASE} https://hg.nginx.org/pkg-oss/ \
&& curl -f -sSLO https://github.com/nginx/pkg-oss/archive/${NGINX_VERSION}-${PKG_RELEASE}.tar.gz \
&& mkdir pkg-oss \
&& tar xzvf ${NGINX_VERSION}-${PKG_RELEASE}.tar.gz -C pkg-oss --strip-components 1 \
&& cd pkg-oss \
&& mkdir /tmp/packages \
&& for module in "$ENABLED_MODULES"; do \
Expand Down
Loading
Loading