diff --git a/.github/workflows/check-dependencies.yml b/.github/workflows/check-dependencies.yml index c7bba4d..e7e66b6 100644 --- a/.github/workflows/check-dependencies.yml +++ b/.github/workflows/check-dependencies.yml @@ -2,7 +2,9 @@ name: "Check dependencies" on: pull_request: ~ - push: ~ + push: + branches: + - v3 workflow_dispatch: ~ jobs: @@ -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 diff --git a/.github/workflows/coding-standards.yml b/.github/workflows/coding-standards.yml index 9f4bf68..85e10ba 100644 --- a/.github/workflows/coding-standards.yml +++ b/.github/workflows/coding-standards.yml @@ -2,7 +2,10 @@ name: "Coding standards" on: pull_request: ~ - push: ~ + push: + branches: + - v3 + workflow_dispatch: ~ jobs: coding-standards: diff --git a/.github/workflows/security-analysis.yml b/.github/workflows/security-analysis.yml index 385c8fa..6b8be46 100644 --- a/.github/workflows/security-analysis.yml +++ b/.github/workflows/security-analysis.yml @@ -2,7 +2,9 @@ name: "Security analysis" on: pull_request: ~ - push: ~ + push: + branches: + - v3 workflow_dispatch: ~ jobs: diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 5766107..14b980d 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -2,10 +2,10 @@ name: "Static analysis" on: pull_request: ~ + push: + branches: + - v3 workflow_dispatch: ~ - push: ~ -# schedule: -# - cron: '0 */3 * * *' jobs: static-analysis: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9865645..cd6679a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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: @@ -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" diff --git a/readme.md b/readme.md index c2db14c..e61ae47 100644 --- a/readme.md +++ b/readme.md @@ -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)