chore(website): migrate to dosipas-ts 2.0.0 and trust the Car Jaune key #190
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 | |
| on: | |
| push: | |
| branches: ['**'] | |
| pull_request: | |
| branches: ['**'] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [20, 22] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: npm | |
| - run: npm ci | |
| - run: npm test | |
| - run: npm run build | |
| - name: ESM smoke test (import packed artifact with plain Node) | |
| run: | | |
| npm pack --pack-destination /tmp | |
| mkdir -p /tmp/smoke && cd /tmp/smoke && npm init -y | |
| npm install /tmp/dosipas-ts-*.tgz | |
| node -e "import('dosipas-ts').then(m => { | |
| if (typeof m.decodeTicket !== 'function') process.exit(1); | |
| console.log('ESM smoke test ok'); | |
| })" |