Skip to content

Commit

Permalink
Adjust Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
0x46616c6b committed Dec 30, 2023
1 parent 63cc1f1 commit 502a724
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 26 deletions.
47 changes: 30 additions & 17 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ on:
branches:
- main

permissions: read-all

env:
DATABASE_DRIVER: pdo_sqlite
DATABASE_URL: sqlite:///%kernel.project_dir%/var/db_test.sqlite
Expand All @@ -30,15 +28,18 @@ env:

jobs:
unit-tests:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
name: PHPUnit
strategy:
fail-fast: false
matrix:
php-versions: ['7.4', '8.2']
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
- name: Checkout
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: openssl, sodium
Expand Down Expand Up @@ -76,16 +77,20 @@ jobs:
matrix:
php-versions: ['7.4', '8.2']
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
- name: Checkout
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: openssl, sodium
tools: composer

- uses: actions/setup-node@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '16'
node-version: 'lts'

- name: Get composer cache directory
id: composer-cache
Expand Down Expand Up @@ -124,16 +129,20 @@ jobs:
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
- name: Checkout
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
extensions: openssl, sodium, mysql
tools: composer

- uses: actions/setup-node@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '16'
node-version: 'lts'

- name: Get composer cache directory
id: composer-cache
Expand Down Expand Up @@ -171,16 +180,20 @@ jobs:
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
- name: Checkout
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: openssl, sodium, pgsql
tools: composer

- uses: actions/setup-node@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '16'
node-version: 'lts'

- name: Get composer cache directory
id: composer-cache
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/psalm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,20 @@ name: Psalm Static analysis

on: [pull_request]

permissions: read-all

jobs:
psalm:
name: Psalm
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout code
- name: Checkout
uses: actions/checkout@v4

- name: Psalm
uses: docker://vimeo/psalm-github-actions
with:
security_analysis: true
report_file: results.sarif

- name: Upload Security Analysis results to GitHub
uses: github/codeql-action/upload-sarif@v3
with:
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/security-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ on:
schedule:
- cron: '0 8 * * 1'

permissions: read-all

jobs:
security-check:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
name: PHP Security Checker
steps:
- uses: actions/checkout@v4
- uses: symfonycorp/security-checker-action@v5
- name: Checkout
uses: actions/checkout@v4

- name: Symfony Security Check
uses: symfonycorp/security-checker-action@v5

0 comments on commit 502a724

Please sign in to comment.