generated from rohsyl/skeleton-php
-
-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·45 lines (34 loc) · 1.03 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# CI workflow for laravel-otc
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
[ push, pull_request ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
- name: Cache Composer dependencies
uses: actions/cache@v2
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
- name: Install Dependencies
uses: php-actions/composer@v6
with:
php_version: 8.1
php_extensions: gd zip
version: 2
args: -q -n
- name: Directory Permissions
run: sudo chmod -R 777 vendor/orchestra/testbench-core/laravel
- name: Execute tests (Unit and Feature tests) via PHPUnit
run: |
php -v
vendor/bin/phpunit