Skip to content

Commit

Permalink
ci: fix the optim test uploading result
Browse files Browse the repository at this point in the history
  • Loading branch information
EmileRolley committed Feb 27, 2023
1 parent d259a2c commit 757882e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/upload-compilation-result.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
check-translation-result: ${{ steps.check-translation.outputs.result }}
check-personas-result: ${{ steps.check-personas.outputs.result }}
test-personas-result: ${{ steps.test-personas.outputs.result }}
test-optim-result: ${{ steps.test-optim.outputs.result }}
test-url: ${{ steps.set-test-url.outputs.fr }}
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -53,15 +54,15 @@ jobs:
- id: test-personas
run: |
# Test the personas bilans against production
body="$(yarn test:personas:md 2> /dev/null| tail --lines=+3 | head --lines=-1)"
body="$(yarn test:personas --markdown 2> /dev/null| tail --lines=+3 | head --lines=-1)"
body="${body//'%'/'%25'}"
body="${body//$'\n'/'%0A'}"
body="${body//$'\r'/'%0D'}"
echo "::set-output name=result::${body}"
- id: test-optim
run: |
# Test the personas bilans against production
body="$(yarn test:optim:md 2> /dev/null| tail --lines=+3 | head --lines=-1)"
body="$(yarn test:optim --markdown 2> /dev/null| tail --lines=+3 | head --lines=-1)"
body="${body//'%'/'%25'}"
body="${body//$'\n'/'%0A'}"
body="${body//$'\r'/'%0D'}"
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
"compile:rules": "node scripts/rulesToJSON.mjs",
"compile-watch": "nodemon -e yaml --watch data/ scripts/rulesToJSON.mjs & nodemon -e yaml --watch personas/ scripts/personasToJSON.js & nodemon -e md --watch contenu-ecrit/ scripts/documentationToJSON.js ",
"test:personas": "node tests/testPersonas.js",
"test:personas:md": "node tests/testPersonas.js --markdown",
"test:optim": "node tests/testOptim.js",
"test:optim:md": "node tests/testOptim.js --markdown",
"translate": "node scripts/i18n/translate-rules.js && node scripts/i18n/translate-personas.js",
"check:personas": "node scripts/i18n/check-personas.js ",
"translate:personas": "node scripts/i18n/translate-personas.js",
Expand Down

0 comments on commit 757882e

Please sign in to comment.