forked from cloudflare/cloudflare-php
-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (33 loc) · 906 Bytes
/
lint.yml
File metadata and controls
41 lines (33 loc) · 906 Bytes
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
name: Lint
on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]
jobs:
build:
runs-on: ubuntu-latest
env:
LOWEST: '0'
PHP_VERSION: '8.3'
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ env.PHP_VERSION }}
- name: Cache Composer dependencies
uses: actions/cache@v2
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-php${{ env.PHP_VERSION }}-lowest${{ env.LOWEST }}-{{ hashFiles('**/composer.lock') }}
- name: Install dependencies
uses: php-actions/composer@v5
env:
COMPOSER_PREFER_LOWEST: ${{ env.LOWEST }}
with:
command: install
args: --prefer-dist --no-progress --prefer-stable --no-suggest --verbose
php_version: ${{ env.PHP_VERSION }}
version: 1
- name: Run lint
run: make lint