forked from rooseveltframework/node-php-runner
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (27 loc) · 823 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
on: [push, pull_request]
name: CI
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
php-versions: ['7.4', '8.0']
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Setup PHP Action
uses: shivammathur/setup-php@v3
with:
php-version: ${{ matrix.php-versions }}
ini-values: short_open_tag=On, error_reporting=E_ALL & ~E_NOTICE
- run: npm ci
- run: npm run lint
- run: npm run coverage
- run: npm run codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}