Skip to content

Commit

Permalink
Update github actions...
Browse files Browse the repository at this point in the history
  • Loading branch information
elkuku committed Dec 6, 2023
1 parent e24a1ac commit 3efabf3
Showing 1 changed file with 2 additions and 28 deletions.
30 changes: 2 additions & 28 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Tests
on: [push]
jobs:
php-unit-and-functional-tests:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
# Docs: https://docs.github.com/en/actions/using-containerized-services
services:
postgres:
Expand All @@ -21,7 +21,7 @@ jobs:
steps:
# —— Setup GitHub actions —————————————————————————————————————————————
# https://github.com/actions/checkout (official)
- name: Git checkout placeholder-service
- name: Git checkout
uses: actions/checkout@v3
# https://github.com/shivammathur/setup-php (community)
- name: Setup PHP
Expand All @@ -38,39 +38,13 @@ jobs:
- name: Install dependencies
uses: php-actions/composer@v6
# —— Symfony ——————————————————————————————————————————————————————————
# - name: Check Symfony requirements
# run: vendor/bin/requirements-checker
- name: Check the Symfony console
run: bin/console -V
# —— Code style —— (Based on this package: https://github.com/OskarStark/php-cs-fixer-ga)
# - name: PHP-CS-Fixer
# uses: docker://oskarstark/php-cs-fixer-ga
# with:
# args: --config=.php_cs.dist --diff --dry-run
# - name: Cache node_modules
# uses: actions/cache@v1
# id: yarn-cache-node-modules
# with:
# path: node_modules
# key: ${{ runner.os }}-yarn-cache-node-modules-${{ hashFiles('**/yarn.lock') }}
# restore-keys: |
# ${{ runner.os }}-yarn-cache-node-modules-

#- name: Yarn install
# if: steps.yarn-cache-node-modules.outputs.cache-hit != 'true'
#run: yarn install

#- name: Yarn build
# run: yarn run encore production
- name: Install assets
run: bin/console importmap:install
## —— Tests ———————————————————————————————————————————————————————————
- name: Run functional and unit tests
run: make citests
env:
DATABASE_URL: postgres://postgres:[email protected]:${{ job.services.postgres.ports[5432] }}/postgres?charset=UTF-8

- name: Output log files
run: ls /var/log/apache2/
- name: aaa
run: cat /var/log/apache2/error.log

0 comments on commit 3efabf3

Please sign in to comment.