|
| 1 | +name: CI |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [main] |
| 6 | + pull_request: |
| 7 | + branches: [main] |
| 8 | + |
| 9 | +concurrency: |
| 10 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 11 | + cancel-in-progress: true |
| 12 | + |
| 13 | +permissions: |
| 14 | + contents: read |
| 15 | + |
| 16 | +jobs: |
| 17 | + lint: |
| 18 | + runs-on: ubuntu-latest |
| 19 | + steps: |
| 20 | + - uses: actions/checkout@v4 |
| 21 | + - uses: jdx/mise-action@v2 |
| 22 | + - run: pnpm install --frozen-lockfile |
| 23 | + - run: pnpm exec biome ci . |
| 24 | + |
| 25 | + typecheck: |
| 26 | + runs-on: ubuntu-latest |
| 27 | + steps: |
| 28 | + - uses: actions/checkout@v4 |
| 29 | + - uses: jdx/mise-action@v2 |
| 30 | + - run: pnpm install --frozen-lockfile |
| 31 | + - run: pnpm -r exec tsc --noEmit |
| 32 | + |
| 33 | + test: |
| 34 | + strategy: |
| 35 | + fail-fast: false |
| 36 | + matrix: |
| 37 | + os: [ubuntu-latest, macos-latest, windows-latest] |
| 38 | + runs-on: ${{ matrix.os }} |
| 39 | + steps: |
| 40 | + - uses: actions/checkout@v4 |
| 41 | + - uses: jdx/mise-action@v2 |
| 42 | + - run: pnpm install --frozen-lockfile |
| 43 | + - run: pnpm -r test |
| 44 | + |
| 45 | + sarif-validate: |
| 46 | + runs-on: ubuntu-latest |
| 47 | + steps: |
| 48 | + - uses: actions/checkout@v4 |
| 49 | + - uses: jdx/mise-action@v2 |
| 50 | + - run: pnpm install --frozen-lockfile |
| 51 | + - run: pnpm -F @opencodehub/sarif build |
| 52 | + - run: pnpm -F @opencodehub/sarif run validate-schema |
| 53 | + |
| 54 | + banned-strings: |
| 55 | + runs-on: ubuntu-latest |
| 56 | + steps: |
| 57 | + - uses: actions/checkout@v4 |
| 58 | + - run: bash scripts/check-banned-strings.sh |
| 59 | + |
| 60 | + licenses: |
| 61 | + runs-on: ubuntu-latest |
| 62 | + steps: |
| 63 | + - uses: actions/checkout@v4 |
| 64 | + - uses: jdx/mise-action@v2 |
| 65 | + - run: pnpm install --frozen-lockfile |
| 66 | + - name: license allowlist |
| 67 | + run: > |
| 68 | + pnpm exec license-checker-rseidelsohn |
| 69 | + --onlyAllow 'Apache-2.0;MIT;BSD-2-Clause;BSD-3-Clause;ISC;CC0-1.0' |
| 70 | + --excludePrivatePackages |
| 71 | + --production |
| 72 | +
|
| 73 | + osv: |
| 74 | + permissions: |
| 75 | + contents: read |
| 76 | + security-events: write |
| 77 | + uses: google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@v2 |
| 78 | + with: |
| 79 | + scan-args: |- |
| 80 | + --lockfile=pnpm-lock.yaml |
0 commit comments