Skip to content

fix(addon): auto include dist files #165

fix(addon): auto include dist files

fix(addon): auto include dist files #165

Workflow file for this run

name: Lint
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
env:
MISE_EXEC_AUTO_INSTALL: "false"
MISE_NOT_FOUND_AUTO_INSTALL: "false"
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install lint tools
uses: jdx/mise-action@v3
with:
install: true
install_args: node python java ktlint swiftlint pipx:gdtoolkit dotnet
cache: true
- name: Enable Corepack
run: mise x -- corepack enable pnpm
- name: Get pnpm store path
id: pnpm-store
run: echo "path=$(mise x -- corepack pnpm store path --silent)" >> "$GITHUB_OUTPUT"
- name: Cache pnpm store
uses: actions/cache@v5
with:
path: ${{ steps.pnpm-store.outputs.path }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install pnpm dependencies
run: mise x -- corepack pnpm install --frozen-lockfile
- name: Run lint
run: |
mise run lint
git diff --exit-code
format:
name: Format
runs-on: ubuntu-latest
env:
MISE_EXEC_AUTO_INSTALL: "false"
MISE_NOT_FOUND_AUTO_INSTALL: "false"
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install lint tools
uses: jdx/mise-action@v3
with:
install: true
install_args: node python java ktlint swiftlint pipx:gdtoolkit dotnet
cache: true
- name: Enable Corepack
run: mise x -- corepack enable pnpm
- name: Get pnpm store path
id: pnpm-store
run: echo "path=$(mise x -- corepack pnpm store path --silent)" >> "$GITHUB_OUTPUT"
- name: Cache pnpm store
uses: actions/cache@v5
with:
path: ${{ steps.pnpm-store.outputs.path }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install pnpm dependencies
run: mise x -- corepack pnpm install --frozen-lockfile
- name: Run format
run: |
mise run lint
git diff --exit-code
typecheck:
name: Typecheck
runs-on: ubuntu-latest
env:
MISE_EXEC_AUTO_INSTALL: "false"
MISE_NOT_FOUND_AUTO_INSTALL: "false"
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install Node
uses: jdx/mise-action@v3
with:
install: true
install_args: node
cache: true
- name: Enable Corepack
run: mise x -- corepack enable pnpm
- name: Get pnpm store path
id: pnpm-store
run: echo "path=$(mise x -- corepack pnpm store path --silent)" >> "$GITHUB_OUTPUT"
- name: Cache pnpm store
uses: actions/cache@v5
with:
path: ${{ steps.pnpm-store.outputs.path }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install pnpm dependencies
run: mise x -- corepack pnpm install --frozen-lockfile
- name: Run typecheck
run: mise run typecheck