1
0
Fork 0
mirror of synced 2024-07-06 23:21:05 +12:00
appwrite/.github/workflows/linter.yml

25 lines
495 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
- 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"