-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 1.17 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Deploy web app
on:
pull_request:
types: [opened, reopened, synchronize]
branches:
- 'main'
- 'development'
jobs:
ci-lint:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: laravel-pint
uses: aglipanci/[email protected]
with:
preset: laravel
verboseMode: true
testMode: true
configPath: "vendor/my-company/coding-style/pint.json"
pintVersion: 1.8.0
onlyDirty: true
- name: setup-python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: cache-pre-commit
uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
- name: install-pre-commit
run: pip3 install pre-commit
- name: run-pre-commit
shell: bash
run: |
pre-commit run --from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }} --show-diff-on-failure --color always