mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-25 16:39:13 +01:00
Add GH actions to run tests on dev only & disable travis on dev
This commit is contained in:
parent
8590f55546
commit
4dd8a2df90
45
.github/workflows/phpunit.yml
vendored
Normal file
45
.github/workflows/phpunit.yml
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
name: phpunit
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
paths:
|
||||
- .github/workflows/phpunit.yml
|
||||
- app/**
|
||||
- bootstrap/**
|
||||
- config/**
|
||||
- database/**
|
||||
- docker/**
|
||||
- public/**
|
||||
- resources/**
|
||||
- routes/**
|
||||
- storage/**
|
||||
- tests/**
|
||||
- .dockerignore
|
||||
- .env.travis
|
||||
- artisan
|
||||
- composer.json
|
||||
- composer.lock
|
||||
- Dockerfile
|
||||
- phpunit.xml
|
||||
- server.php
|
||||
|
||||
jobs:
|
||||
verify:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKER_BUILDKIT: "1"
|
||||
steps:
|
||||
- uses: actions/checkout@v2.3.4
|
||||
|
||||
- name: Build test image
|
||||
run: docker build --target test -t test-container .
|
||||
|
||||
- name: Run tests in test container
|
||||
run: |
|
||||
touch coverage.txt
|
||||
docker run --rm \
|
||||
test-container
|
||||
|
||||
- name: Build final image
|
||||
run: docker build .
|
@ -35,4 +35,4 @@ after_success:
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
- dev
|
||||
# - dev
|
Loading…
Reference in New Issue
Block a user