-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1005 Bytes
/
test.yml
File metadata and controls
39 lines (37 loc) · 1005 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
35
36
37
38
39
name: test
on:
push:
schedule:
- cron: '0 0 * */1 *'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [8.3, 8.4, 8.5]
name: PHP ${{ matrix.php-version }}
steps:
- name: Install Just
uses: extractions/setup-just@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout code
uses: actions/checkout@v6
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: mbstring, calendar
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Maintain Composer cache
uses: actions/cache@v5
with:
path: .cache/composer
key: composer-${{ hashFiles('composer.json') }}
restore-keys: composer-
- name: Install packages
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: just install
- run: just test