Skip to content

Commit

Permalink
build: updates GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
matiux committed Jul 19, 2022
1 parent 4d64994 commit 8e74d04
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 10 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/check-dependencies.yml
Expand Up @@ -2,7 +2,9 @@ name: "Check dependencies"

on:
pull_request: ~
push: ~
push:
branches:
- v3
workflow_dispatch: ~

jobs:
Expand All @@ -11,6 +13,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'

- name: Checkout code
uses: actions/checkout@v2

Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/coding-standards.yml
Expand Up @@ -2,7 +2,10 @@ name: "Coding standards"

on:
pull_request: ~
push: ~
push:
branches:
- v3
workflow_dispatch: ~

jobs:
coding-standards:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/security-analysis.yml
Expand Up @@ -2,7 +2,9 @@ name: "Security analysis"

on:
pull_request: ~
push: ~
push:
branches:
- v3
workflow_dispatch: ~

jobs:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/static-analysis.yml
Expand Up @@ -2,10 +2,10 @@ name: "Static analysis"

on:
pull_request: ~
push:
branches:
- v3
workflow_dispatch: ~
push: ~
# schedule:
# - cron: '0 */3 * * *'

jobs:
static-analysis:
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/tests.yml
Expand Up @@ -2,20 +2,20 @@ name: "Test"

on:
pull_request: ~
push: ~
push:
branches:
- v3
workflow_dispatch: ~

jobs:

run-tests:
name: Run tests
env:
DATABASE_URL: mysql://root:root@127.0.0.1:32574/ddd_sp_test?serverVersion=5
runs-on: "ubuntu-latest"
# container: ubuntu
#container: ubuntu

services:

servicedb:
image: mariadb:10.3.22
env:
Expand All @@ -29,6 +29,11 @@ jobs:
- name: Verify MySQL connection from container
run: mysql --host 127.0.0.1 --port 32574 -uroot -proot -e "SHOW DATABASES"

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'

- name: Checkout code
uses: "actions/checkout@v2"

Expand Down
6 changes: 6 additions & 0 deletions readme.md
Expand Up @@ -32,6 +32,12 @@ composer install
## test
Eseguire l'alias `test`

This repository uses GitHub actions to perform some checks. If you want to test the actions locally you can use [act](https://github.com/nektos/act).
For example if you want to check the action for static analysis
```
act -P ubuntu-latest=shivammathur/node:latest --job static-analysis
```

#### Moduli

* [Aggregate](doc/aggregate.md)
Expand Down

0 comments on commit 8e74d04

Please sign in to comment.