Merge pull request #131 from bob1300/patch-1 #596
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: CI | |
on: | |
push: | |
pull_request: | |
permissions: | |
contents: write | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
concurrency: ci-build-${{ github.ref }} | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Install pnpm | |
uses: pnpm/action-setup@v3 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'pnpm' | |
cache-dependency-path: '**/pnpm-lock.yaml' | |
- name: Install Packages | |
run: pnpm install --frozen-lockfile | |
- name: Build | |
run: pnpm run build | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
concurrency: ci-lint-${{ github.ref }} | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'pnpm' | |
cache-dependency-path: '**/pnpm-lock.yaml' | |
- name: Install Packages | |
run: pnpm install --frozen-lockfile | |
- name: Lint | |
run: pnpm ci:lint | |
spellcheck: | |
name: Spellcheck | |
runs-on: ubuntu-latest | |
concurrency: ci-cspell-${{ github.ref }} | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'pnpm' | |
cache-dependency-path: '**/pnpm-lock.yaml' | |
- name: Install Packages | |
run: pnpm install --frozen-lockfile | |
- name: Spellcheck | |
run: pnpm spellcheck |