Skip to content

Commit

Permalink
Ça fonctionne !
Browse files Browse the repository at this point in the history
  • Loading branch information
julienmalard committed Feb 5, 2024
1 parent bd85cbd commit 92dfc7d
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 15 deletions.
2 changes: 2 additions & 0 deletions .aegir.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ const esbuild = {
"zlib",
"rimraf",
"electron",
"env-paths",
"@libp2p/tcp",
],
plugins: [
{
Expand Down
35 changes: 32 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ on:
branches:
- main
jobs:
tests-et-couverture:
name: On test le mandataire
tests-nodejs:
name: Tests sur Node.js
runs-on: ubuntu-latest
steps:
- name: Préparation de Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Installer pnpm
uses: pnpm/[email protected]
Expand All @@ -28,7 +29,35 @@ jobs:
run: pnpm install --lockfile=false

- name: Vérifier les tests
run: pnpm couverture
run: pnpm test:node

- name: Envoyer couverure à Codecov
uses: codecov/codecov-action@v3

tests-navig:
name: Tests sur navigateur
runs-on: ubuntu-latest
steps:
- name: Préparation de Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Installer pnpm
uses: pnpm/[email protected]
with:
version: latest

- name: Ouvrir la branche
uses: actions/checkout@v4

- name: Installer
run: pnpm install --lockfile=false

- name: Vérifier les tests
run: pnpm test:navig

- name: Envoyer couverure à Codecov
uses: codecov/codecov-action@v3

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
"nettoyer": "rimraf dist",
"compiler": "pnpm versioner && pnpm formatter && pnpm nettoyer && pnpm tspc -p tsconfig.build.json",
"test": "pnpm compiler && pnpm aegir test -t node && pnpm aegir test -t browser",
"test:node": "pnpm compiler && pnpm aegir test -t node --cov",
"test:navig": "pnpm compiler && pnpm aegir test -t browser --cov",
"couverture": "pnpm test -- --coverage",
"formatter": "pnpm prettier --ignore-path .gitignore --write \"**/*.+(js|ts|json)\" && pnpm eslint --ext .js,.ts src",
"publier": "pnpm test && (git commit -a -m 'version' || true) && pnpm publish",
Expand All @@ -29,7 +31,7 @@
"uuid": "^9.0.1"
},
"devDependencies": {
"@constl/ipa": "0.9.26-fd39d6da4.0",
"@constl/ipa": "1.0.1-ec2b9d2da.0",
"@constl/orbit-db-types": "^2.0.0",
"@constl/utils-ipa": "^1.0.0",
"@constl/utils-tests": "1.0.3-96c8dff.0",
Expand Down
42 changes: 31 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 92dfc7d

Please sign in to comment.