chore: set 1 axis in demo1 and 2 axis in demo2 #203
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: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: "npm" | |
| cache-dependency-path: "package-lock.json" | |
| - run: npm ci | |
| - run: npm run lint | |
| - run: npm run format:check | |
| - run: npm run typecheck | |
| - run: | | |
| BASE_REF="${{ github.base_ref }}" | |
| if [ -z "$BASE_REF" ]; then | |
| BASE_REF="${{ github.ref_name }}" | |
| fi | |
| npm run commitlint -- --from origin/$BASE_REF --to HEAD | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: "npm" | |
| cache-dependency-path: "package-lock.json" | |
| - run: npm ci | |
| - run: npm test | |
| pack: | |
| needs: [lint, test] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: "npm" | |
| cache-dependency-path: "package-lock.json" | |
| - run: npm ci | |
| - run: mkdir -p tarballs | |
| - run: npm pack --workspace segment-tree-rmq --workspace svg-time-series --pack-destination=tarballs | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: npm-packages | |
| path: tarballs/*.tgz |