mirror of
https://github.com/appwrite/appwrite
synced 2026-04-26 07:57:22 +00:00
- Add COMPOSE_FILE=docker-compose.yml to tests, benchmark, and sdk-preview to prevent loading overrides in CI - Add target: development to tests/benchmark builds, target: production to pr-scan/nightly builds - Bump actions/checkout v4→v6, docker/build-push-action v4/v5→v6, actions/upload-artifact v4→v6, actions/github-script v7→v8 - Pin composer images to 2.8 in linter and static-analysis workflows Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
28 lines
651 B
YAML
28 lines
651 B
YAML
name: "Linter"
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
on: [pull_request]
|
|
jobs:
|
|
lint:
|
|
name: Linter
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 2
|
|
|
|
- run: git checkout HEAD^2
|
|
|
|
- name: Validate composer.json and composer.lock
|
|
run: |
|
|
docker run --rm -v $PWD:/app composer:2.8 sh -c \
|
|
"composer validate"
|
|
- name: Run Linter
|
|
run: |
|
|
docker run --rm -v $PWD:/app composer:2.8 sh -c \
|
|
"composer install --profile --ignore-platform-reqs && composer lint"
|