-
Notifications
You must be signed in to change notification settings - Fork 4
35 lines (29 loc) · 825 Bytes
/
Copy pathci.yml
File metadata and controls
35 lines (29 loc) · 825 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
name: CI
on: [push]
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.2"
- name: Install dependencies
uses: php-actions/composer@v6
with:
version: 2.5.5
- name: Run Tests
run: ./.github/scripts/run-phpunit.sh
- name: Upload coverage
uses: qltysh/qlty-action/coverage@v2
with:
token: ${{ secrets.QLTY_COVERAGE_TOKEN }}
files: coverage.xml
format: clover
command: publish
verbose: true
- name: Clean up GitHub workspace
uses: docker://ubuntu:latest
with:
args: find /github/workspace/. -name . -o -prune -exec rm -rf -- {} +