diff options
Diffstat (limited to '.github/workflows/ci.yaml')
| -rw-r--r-- | .github/workflows/ci.yaml | 57 |
1 files changed, 10 insertions, 47 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 26c7aaa..b611c7b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,86 +6,49 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: "ubuntu-latest" steps: - uses: actions/checkout@v4 with: submodules: recursive - - name: setup pnpm + - name: Setup pnpm uses: pnpm/action-setup@v2 - - name: setup node + - name: Setup Node uses: actions/setup-node@v4 with: node-version: 20 cache: pnpm cache-dependency-path: pnpm-lock.yaml - - name: install deps + - name: Install dependencies run: pnpm install --frozen-lockfile - - name: run build + - name: Run build run: pnpm build - lint: - runs-on: ubuntu-latest - - permissions: - security-events: write - - steps: - - uses: actions/checkout@v4 - with: - submodules: recursive - - - name: setup pnpm - uses: pnpm/action-setup@v2 - - - name: setup node - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: pnpm - cache-dependency-path: pnpm-lock.yaml - - - name: install deps - run: pnpm install --frozen-lockfile - - - name: run lint - run: pnpm run lint -f @microsoft/eslint-formatter-sarif -o /tmp/lint.sarif - continue-on-error: true - - - name: strip suppressed results - run: pnpm dlx @ryanccn/sarif-strip-suppressed /tmp/lint.sarif - - - name: upload results - uses: github/codeql-action/upload-sarif@v2 - with: - sarif_file: /tmp/lint.sarif - wait-for-processing: true - format: - runs-on: ubuntu-latest + runs-on: "ubuntu-latest" steps: - uses: actions/checkout@v4 with: submodules: recursive - - name: setup pnpm + - name: Setup pnpm uses: pnpm/action-setup@v2 - - name: setup node + - name: Setup Node uses: actions/setup-node@v4 with: node-version: 20 cache: pnpm cache-dependency-path: pnpm-lock.yaml - - name: install deps + - name: Install dependencies run: pnpm install --frozen-lockfile - - name: run prettier + - name: Run Prettier run: pnpm exec prettier --check . |
