Run tests only on branch main and on pull requests (#492)

* Use reusable workflow and control push and pr test exec

* use format

* use path ref

* Run tests on push to main and on PRs
This commit is contained in:
Maycon Santos 2022-10-03 00:17:16 +05:00 committed by GitHub
parent 2cd9b11e7d
commit c88e6a7342
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 4 deletions

View File

@ -1,5 +1,10 @@
name: Test Code Darwin
on: [push,pull_request]
on:
push:
branches:
- main
pull_request:
jobs:
test:

View File

@ -1,5 +1,10 @@
name: Test Code Linux
on: [push,pull_request]
on:
push:
branches:
- main
pull_request:
jobs:
test:

View File

@ -1,5 +1,10 @@
name: Test Code Windows
on: [push,pull_request]
on:
push:
branches:
- main
pull_request:
jobs:
pre:

View File

@ -1,5 +1,10 @@
name: Test Docker Compose Linux
on: [push,pull_request]
on:
push:
branches:
- main
pull_request:
jobs:
test: