Skip to content

Commit ef14b0d

Browse files
committed
Create tests.yml
1 parent e43a82e commit ef14b0d

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/tests.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
permissions:
8+
id-token: write
9+
contents: read
10+
11+
jobs:
12+
test:
13+
name: tests
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
- name: Setup PHP, with composer and extensions
20+
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
21+
with:
22+
php-version: 8.4
23+
extensions: mbstring
24+
coverage: xdebug
25+
- name: Install Composer dependencies
26+
run: composer install -q
27+
- name: Test
28+
run: vendor/bin/phpunit
29+
- name: Code Coverage
30+
uses: qltysh/qlty-action/coverage@v1
31+
with:
32+
oidc: true
33+
files: build/logs/clover.xml

0 commit comments

Comments
 (0)