-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (34 loc) · 922 Bytes
/
ci.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
name: CI
on:
push:
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
- name: Install Devbox
uses: jetpack-io/[email protected]
with:
enable-cache: true
- name: Check formatting
run: devbox run -- composer run-script format-check
- name: Test
run: devbox run test
test_php_81:
name: Test (PHP 8.1)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
- name: Install Devbox
uses: jetpack-io/[email protected]
with:
enable-cache: true
project-path: 'ci/php-8_1'
- name: Test
run: devbox --config ci/php-8_1 run test