2022-06-01 03:09:45 +12:00
|
|
|
name: "Linter"
|
|
|
|
|
2023-02-22 11:58:26 +13:00
|
|
|
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"
|