-
Notifications
You must be signed in to change notification settings - Fork 10
46 lines (37 loc) · 1.06 KB
/
build_on_merge.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
45
46
name: Build on merge to latest
on:
push:
branches:
- latest
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Install PHP"
uses: "shivammathur/[email protected]"
with:
coverage: "pcov"
php-version: "8.3"
ini-values: memory_limit=-1
tools: composer:v2, cs2pr
- name: "Cache dependencies"
uses: "actions/cache@v4"
with:
key: ${{ runner.os }}-node-${{ hashFiles('/composer.lock') }}
path: |
~/.composer/cache
vendor
- name: Install dependencies
run: composer install --no-progress
- name: Set up user name and email for git
run: |
git config --global user.email "$GIT_USER_EMAIL"
git config --global user.name "$GIT_USER_NAME"
env:
GIT_USER_EMAIL: [email protected]
GIT_USER_NAME: test
- name: Build advisories
run: php build-conflicts.php
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}