Merge pull request #24 from YOUSIKI/dependabot/npm_and_yarn/cloudflar… #83
This file contains 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: Continuous Integration | |
on: | |
push: | |
pull_request: | |
permissions: | |
contents: read | |
security-events: write | |
jobs: | |
check: | |
name: Run checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 | |
with: | |
version: "9" | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .node-version | |
cache: pnpm | |
cache-dependency-path: pnpm-lock.yaml | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Check | |
run: pnpm run check | |
lint: | |
name: Run linter | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 | |
with: | |
version: "9" | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .node-version | |
cache: pnpm | |
cache-dependency-path: pnpm-lock.yaml | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Lint and save results | |
run: pnpm run lint -f @microsoft/eslint-formatter-sarif -o /tmp/lint.sarif | |
continue-on-error: true | |
- name: Upload lint results | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: /tmp/lint.sarif | |
wait-for-processing: true | |
- name: Lint | |
run: pnpm run lint |