Skip to content

Commit

Permalink
Update GitHub Actions to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
martialblog committed Aug 2, 2024
1 parent fed052c commit 2b9e797
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: monthly
28 changes: 24 additions & 4 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ on:

jobs:
lint:
name: Static analysis for php ${{ matrix.php }} on ${{ matrix.os }}
name: Lint and Code Style
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
php: ['8.0', '8.1', '8.2']
php: ['8.2', '8.3']
os: ['ubuntu-latest']

steps:
- name: Checkout code base
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -42,6 +42,26 @@ jobs:
if: success() || matrix.allow_failure
run: phpcs -wps --colors

test:
name: Unittest
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
php: ['8.2', '8.3']
os: ['ubuntu-latest']

steps:
- name: Checkout code base
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: 'phpunit:10.4'

- name: Setup Libraries
run: |
mkdir -p _libraries
Expand All @@ -54,4 +74,4 @@ jobs:
- name: PHPUnit
env:
ICINGAWEB_LIBDIR: _libraries/
run: phpunit --verbose
run: phpunit

0 comments on commit 2b9e797

Please sign in to comment.