CI #1114
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize | |
| schedule: | |
| - cron: '0 10 * * *' | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: "Package stability ${{ matrix.stability }}" | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| strategy: | |
| matrix: | |
| stability: [ 'stable', 'lowest' ] | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout Repo | |
| uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | |
| - name: Build Container | |
| run: make build | |
| - name: Install Dependencies | |
| run: COMPOSER_STABILITY=${{ matrix.stability }} make install | |
| - name: Run Linter | |
| run: make lint | |
| - name: Run Static Analysis | |
| run: make stan | |
| - name: Run Tests | |
| run: make test |