Create semgrep.yml (#84) #4
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
name: "Composer" | |
on: | |
pull_request: | |
merge_group: | |
push: | |
branches: ["master", "main"] | |
permissions: {} | |
defaults: | |
run: | |
working-directory: app | |
jobs: | |
validate: | |
name: "Validate" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: composer validate | |
normalize: | |
name: "Normalize" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: composer require --dev ergebnis/composer-normalize | |
- run: composer config allow-plugins.ergebnis/composer-normalize true | |
- run: composer normalize |