mirror of
https://github.com/supabase/setup-cli.git
synced 2026-06-27 17:36:57 +00:00
## Summary - Detect Linux musl runners in the v1 action and download the Supabase CLI `.apk` asset for CLI versions `>= 2.99.0`. - Add the extracted `usr/bin` directory to `PATH` for `.apk` archives. - Backport the optional `github-token` input for authenticated `latest` release lookup, because the test matrix hit unauthenticated GitHub API rate limits. - Rebuild `dist/index.js` for the Node action. ## Validation - `npm run format:check` - `npm run lint` - `npm test` - `npm run package` - Local Docker smoke test in `node:20-alpine` with `INPUT_VERSION=2.100.1` - setup-cli-testing workflow: https://github.com/jgoux/setup-cli-testing/actions/runs/26165593808 The external workflow passed Alpine `2.100.1`, Alpine `latest`, and Ubuntu/macOS/Windows with both `2.100.1` and `latest`.
59 lines
1.4 KiB
YAML
59 lines
1.4 KiB
YAML
# This workflow will lint the entire codebase using the
|
|
# `super-linter/super-linter` action.
|
|
#
|
|
# For more information, see the super-linter repository:
|
|
# https://github.com/super-linter/super-linter
|
|
name: Lint Codebase
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
permissions:
|
|
contents: read
|
|
packages: read
|
|
statuses: write
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint Codebase
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
id: checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup Node.js
|
|
id: setup-node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: .node-version
|
|
cache: npm
|
|
|
|
- name: Install Dependencies
|
|
id: install
|
|
run: npm ci
|
|
|
|
- name: Lint Codebase
|
|
id: super-linter
|
|
uses: super-linter/super-linter/slim@v8
|
|
env:
|
|
DEFAULT_BRANCH: main
|
|
FILTER_REGEX_EXCLUDE: dist/**/*
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
LINTER_RULES_PATH: ${{ github.workspace }}
|
|
VALIDATE_ALL_CODEBASE: true
|
|
VALIDATE_BIOME_FORMAT: false
|
|
VALIDATE_JAVASCRIPT_ES: false
|
|
VALIDATE_JAVASCRIPT_STANDARD: false
|
|
VALIDATE_JSCPD: false
|
|
VALIDATE_TYPESCRIPT_ES: false
|
|
VALIDATE_JSON: false
|
|
VALIDATE_GITHUB_ACTIONS_ZIZMOR: false
|
|
VALIDATE_TYPESCRIPT_STANDARD: false
|