Améliorer la lisibilité du texte dans les cartes de projets et sections #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| name: CI/CD Pipeline | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '18' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: | | |
| npm ci | |
| if: hashFiles('package.json') != '' | |
| - name: Run tests | |
| run: | | |
| npm test | |
| if: hashFiles('package.json') != '' | |
| - name: Check markdown files | |
| uses: DavidAnson/markdownlint-cli2-action@v12 | |
| with: | |
| globs: "**/*.md" | |
| - name: Check for broken links | |
| uses: gaurav-nelson/github-action-markdown-link-check@v1 | |
| with: | |
| use-quiet-mode: 'yes' | |
| use-verbose-mode: 'yes' | |
| folder-path: '.' | |
| build-website: | |
| runs-on: ubuntu-latest | |
| needs: test | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '18' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: | | |
| cd website | |
| npm ci | |
| if: hashFiles('website/package.json') != '' | |
| - name: Build website | |
| run: | | |
| cd website | |
| npm run build | |
| if: hashFiles('website/package.json') != '' | |
| - name: Upload build artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: website-build | |
| path: website/dist/ | |
| if: hashFiles('website/package.json') != '' | |
| deploy: | |
| runs-on: ubuntu-latest | |
| needs: [test, build-website] | |
| if: github.ref == 'refs/heads/main' | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Download build artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: website-build | |
| path: website/dist/ | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./website/dist | |
| force_orphan: true |