Merge pull request #1301 from microsoftgraph/main #1562
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) Microsoft Corporation. All rights reserved. | |
# Licensed under the MIT License. | |
name: "Validate Pull Request" | |
on: | |
push: | |
branches: [ main, dev, feat/kiota-preview ] | |
pull_request: | |
branches: [ main, dev, feat/kiota-preview ] | |
# 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@v3 | |
- name: Validate composer file | |
run: | | |
composer validate | |
- name: Install dependencies | |
run: | | |
composer install | |
- name: run tests | |
run : | | |
vendor/bin/phpunit --exclude-group functional | |
- name: Run static analysis | |
run: | | |
vendor/bin/phpstan analyse --memory-limit=1500M --error-format=github |