Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
OCTO-GUIC committed Feb 12, 2024
1 parent b244e85 commit 93a4dba
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 30 deletions.
31 changes: 14 additions & 17 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
name: Lighthouse CI

on:
push:
branches:
- main
on: [push]

jobs:
lhci:
name: Lighthouse
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
- uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: '14'

- name: Install dependencies
run: npm install

- name: Build and serve
run: npm run build && npm run serve &

- name: Run Lighthouse CI
run: npm run lhci
node-version: 16.x
- name: npm install, build
run: |
npm install
npm run build
- name: run Lighthouse CI
run: |
npm install -g @lhci/[email protected]
lhci autorun
14 changes: 1 addition & 13 deletions .lightouserc.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
module.exports = {
ci: {
collect: {
// Spécifiez les options de collecte ici
// Par exemple, vous pouvez définir le nombre de runs et les URL à tester
numberOfRuns: 3,
url: ['https://agir.beta.gouv.fr/'], // Remplacez par l'URL de votre app en développement ou en production
},
assert: {
assertions: {
// Définissez ici les assertions pour les scores que vous voulez atteindre.
// Exemple : 'categories:performance': ['error', {minScore: 0.9}]
},
},
upload: {
target: 'temporary-public-storage', // Pour tester, utilisez 'temporary-public-storage'
target: 'temporary-public-storage',
},
},
};

0 comments on commit 93a4dba

Please sign in to comment.