chore: Clean up dynamic code imports, types #509
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" ] | |
paths-ignore: | |
- '**/*.md' | |
- 'LICENSE' | |
- '**/.husky' | |
- 'sanity-cms/**' | |
- 'express-api/**' | |
- 'rust-api/**' | |
- 'elixir-api/**' | |
concurrency: | |
group: ci | |
cancel-in-progress: true | |
jobs: | |
lint: | |
name: Lint check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- uses: pnpm/action-setup@v2 | |
name: Install pnpm | |
id: pnpm-install | |
with: | |
version: 8.6.0 | |
run_install: false | |
- name: Use node_modules cache | |
uses: actions/cache@v3 | |
id: nm-cache | |
with: | |
path: 'svelte-app/node_modules' | |
key: ${{ runner.os }}-npm-${{ hashFiles('svelte-app/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-npm- | |
- name: Install dependencies | |
if: steps.nm-cache.outputs.cache-hit != 'true' | |
run: make install-web | |
- name: Run lint check | |
run: make lint | |
tests: | |
name: Tests | |
uses: ./.github/workflows/test.yml | |
secrets: inherit | |
deploy: | |
name: Deploy | |
needs: [ lint, tests ] | |
uses: ./.github/workflows/netlify-deploy.yml | |
secrets: inherit |