Skip to content

Commit 2968964

Browse files
committed
add CI
1 parent 639bc0f commit 2968964

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
CI:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
php:
14+
- '8.1'
15+
- '8.2'
16+
- '8.3'
17+
steps:
18+
- uses: shivammathur/setup-php@2.30.4
19+
with:
20+
php-version: ${{ matrix.php }}
21+
- uses: actions/checkout@v3
22+
with:
23+
fetch-depth: 2 # faster checkout
24+
- run: composer install --no-progress --no-ansi --no-interaction --dev --prefer-dist
25+
- run: composer test

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
.git*
2-
!.gitignore
31
/vendor
2+
/test/coverage.xml

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# PHP-Vite
22

33
[![PHP Version](https://img.shields.io/badge/php-8.1%2B-blue.svg)](https://packagist.org/packages/mindplay/php-vite)
4+
[![Build Status](https://github.com/mindplay-dk/php-vite/actions/workflows/ci.yml/badge.svg)](https://github.com/mindplay-dk/php-vite/actions/workflows/ci.yml)
45
[![License](https://img.shields.io/badge/license-MS--RL-green)](https://opensource.org/license/ms-rl-html)
56

67
This library provides a lightweight [backend integration](https://vitejs.dev/guide/backend-integration.html)

0 commit comments

Comments
 (0)