-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (50 loc) · 1.78 KB
/
security_pack.yml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Security Pack
on:
push:
branches-ignore:
- main
release:
types: [ created ]
schedule:
-
cron: "0 1 * * 6" # Run at 1am every Saturday
workflow_dispatch:
permissions:
actions: write
contents: write
pull-requests: write
jobs:
cqrs-pack:
runs-on: ubuntu-latest
name: "Tests (PHP ${{ matrix.php }})"
strategy:
fail-fast: false
matrix:
php: ["8.3"]
steps:
- uses: actions/checkout@v4
- name: "Setup PHP"
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
ini-values: date.timezone=Europe/Warsaw
extensions: intl, gd, mysql, pdo_mysql, :xdebug
tools: symfony
coverage: none
- name: "Get Composer cache directory"
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: "Setup cache"
uses: actions/cache@v3
with:
path: |
${{ steps.composer-cache.outputs.dir }}
key: ${{ github.run_id }}-${{ runner.os }}-${{ hashFiles('composer.json') }}-symfony-${{ matrix.symfony }}
- name: "Create test application"
run: |
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
(cd tests/Security && make create-test-application)
id: end-of-setup
- name: "Lint container"
run: (cd tests/Security/app && bin/console lint:container)