1
0
Fork 0
mirror of synced 2024-07-08 16:06:02 +12:00
appwrite/.github/workflows/linter.yml

29 lines
643 B
YAML
Raw Normal View History

2022-06-01 03:09:45 +12:00
name: "Linter"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
2022-06-01 03:09:45 +12:00
on: [pull_request]
jobs:
2022-09-08 16:47:47 +12:00
lint:
2022-06-01 03:09:45 +12:00
name: Linter
2022-06-01 03:18:12 +12:00
runs-on: ubuntu-latest
2022-06-01 03:09:45 +12:00
steps:
- name: Checkout repository
2022-09-08 17:00:11 +12:00
uses: actions/checkout@v3
2022-06-01 03:09:45 +12:00
with:
fetch-depth: 2
- run: git checkout HEAD^2
2023-11-16 01:44:37 +13:00
- name: Validate composer.json and composer.lock
run: |
docker run --rm -v $PWD:/app composer sh -c \
"composer validate"
2022-06-01 03:09:45 +12:00
- name: Run Linter
2022-09-08 16:26:33 +12:00
run: |
2022-09-08 17:00:11 +12:00
docker run --rm -v $PWD:/app composer sh -c \
"composer install --profile --ignore-platform-reqs && composer lint"