forked from rezzza/SecurityBundle
-
Notifications
You must be signed in to change notification settings - Fork 5
34 lines (30 loc) · 850 Bytes
/
ci.yml
File metadata and controls
34 lines (30 loc) · 850 Bytes
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
name: Application CI
on: pull_request
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
runs-on: ubuntu-latest
name: PHP CI ${{ matrix.php-versions }}
strategy:
matrix:
php-versions:
- 8.2
- 8.3
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Add HTTP basic auth credentials
run: echo '${{ secrets.COMPOSER_AUTH }}' > $GITHUB_WORKSPACE/auth.json
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: composer:v2
- name: Install dependencies
run: composer install --no-interaction --no-progress
- name: Run unit tests
run: bin/atoum -ulr