ci: clean up, use native pnpm cache, switch to ubuntu-24.04 (#738) #864
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: | |
branches: [main, "release/**"] | |
pull_request: | |
branches: [main, "release/**"] | |
jobs: | |
audit: | |
name: Audit dependencies | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Audit dependencies | |
uses: ./.github/actions/setup | |
with: | |
audit-level: moderate | |
lint: | |
name: Lint | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Lint | |
run: pnpm run lint | |
check-formatting: | |
name: Check formatting | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Check formatting | |
run: pnpm run format:check | |
check-docs: | |
name: Check docs | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Run svelte-check | |
run: pnpm run --dir docs check | |
build-docs: | |
name: Build docs | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Build | |
run: pnpm run build |