forked from microsoftgraph/msgraph-sdk-php
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (40 loc) · 1.07 KB
/
Copy pathpr-validation.yml
File metadata and controls
44 lines (40 loc) · 1.07 KB
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
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
name: "Validate Pull Request"
on:
push:
branches: [ main, dev ]
pull_request:
branches: [ main, dev ]
# Add assigned to defaults as a hack to easily trigger code-gen PRs to run validation
types: [assigned, opened, synchronize, reopened]
defaults:
run:
shell: bash
jobs:
validate-pull-request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- name: Validate composer file
run: |
composer validate
- name: Install dependencies
run: |
composer install
- name: run tests
run : |
vendor/bin/phpunit --exclude-group functional
run-static-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- name: Validate composer file
run: |
composer validate
- name: Install dependencies
run: |
composer install
- name: Run static analysis
run: |
vendor/bin/phpstan analyse --memory-limit=1500M --error-format=github