Skip to content

Commit

Permalink
Merge pull request #1033 from EcrituresNumeriques/feature/code-coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
thom4parisot authored Oct 8, 2024
2 parents d2d633e + 24c9d84 commit 014afe1
Show file tree
Hide file tree
Showing 16 changed files with 8,605 additions and 9,104 deletions.
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/
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Stylo
# Stylo [![Coverage Status](https://coveralls.io/repos/github/EcrituresNumeriques/stylo/badge.svg?branch=master)](https://coveralls.io/github/EcrituresNumeriques/stylo?branch=master) [![tests](https://github.com/EcrituresNumeriques/stylo/actions/workflows/node.yml/badge.svg)](https://github.com/EcrituresNumeriques/stylo/actions/workflows/node.yml)

Stylo est un éditeur de textes pour articles scientifiques en sciences humaines et sociales.

Expand Down Expand Up @@ -91,4 +91,4 @@ Pour installer une instance Stylo en tant que service à disposition d'utilisate


## License
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FEcrituresNumeriques%2Fstylo.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2FEcrituresNumeriques%2Fstylo?ref=badge_large)
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FEcrituresNumeriques%2Fstylo.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2FEcrituresNumeriques%2Fstylo?ref=badge_large)
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

0 comments on commit 014afe1

Please sign in to comment.