Skip to content

Commit 35a9b31

Browse files
committed
add github workflow
1 parent 08a589d commit 35a9b31

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Run tests in Sail’s PHP-Composer container
18+
run: |
19+
docker run --rm \
20+
-u "$(id -u):$(id -g)" \
21+
-v "${{ github.workspace }}":/var/www/html \
22+
-w /var/www/html \
23+
laravelsail/php84-composer:latest \
24+
sh -lc "composer install --no-interaction --prefer-dist && vendor/bin/phpunit"

0 commit comments

Comments
 (0)