Skip to content

Commit dc5d710

Browse files
committed
Added test actions
1 parent 139bda1 commit dc5d710

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Deploy
2+
3+
on: [push]
4+
5+
jobs:
6+
tests:
7+
name: Run tests
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v1
11+
- name: Cache composer dependencies
12+
uses: actions/cache@v1
13+
with:
14+
path: vendor
15+
key: composer-${{ hashFiles('composer.lock') }}
16+
- name: Run composer install
17+
run: |
18+
php --version
19+
composer config "http-basic.nova.laravel.com" "${{ secrets.NOVA_USERNAME }}" "${{ secrets.NOVA_PASSWORD }}"
20+
composer install -n --prefer-dist
21+
env:
22+
APP_ENV: testing
23+
- name: Run tests
24+
run: ./vendor/bin/phpunit
25+
env:
26+
APP_ENV: testing

0 commit comments

Comments
 (0)