Skip to content

Commit ec1f357

Browse files
authored
Merge pull request #97 from omarkdev/create-ga-workflow
Cria workflow no github para rodar testes ao propor novo pull request
2 parents 283479c + 7437f87 commit ec1f357

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "Proposing Changes"
2+
3+
on:
4+
pull_request:
5+
branches: [ master, develop ]
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Validate composer.json and composer.lock
15+
run: composer validate
16+
17+
- name: Cache Composer packages
18+
id: composer-cache
19+
uses: actions/cache@v2
20+
with:
21+
path: vendor
22+
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
23+
restore-keys: |
24+
${{ runner.os }}-php-
25+
- name: Install dependencies
26+
if: steps.composer-cache.outputs.cache-hit != 'true'
27+
run: composer install --prefer-dist --no-progress --no-suggest
28+
29+
- name: Run Tests And Lint
30+
run: composer test

0 commit comments

Comments
 (0)