forked from mapasculturais/mapasculturais
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
172 changed files
with
93,615 additions
and
10,735 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
RR_VERSION=2024.1.0 | ||
PHP_IMAGE_VERSION=8.1-cli-alpine | ||
RR_VERSION=2024.1.1 | ||
PHP_IMAGE_VERSION=8.3-cli-alpine | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,89 +1,35 @@ | ||
name: Testing | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
- "develop" | ||
pull_request: | ||
branches: | ||
- "develop" | ||
- main | ||
|
||
jobs: | ||
php: | ||
strategy: | ||
matrix: | ||
operating-system: [ubuntu-latest] | ||
php-versions: ['8.2'] | ||
runs-on: ${{ matrix.operating-system }} | ||
build-test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
- | ||
name: Composer Install | ||
run: docker run --rm -v $PWD:/app composer:latest install | ||
- | ||
name: Docker Compose | ||
uses: KengoTODA/actions-setup-docker-compose@v1 | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install composer and dependencies | ||
uses: php-actions/composer@v6 | ||
with: | ||
version: '2.14.2' # the full version of `docker-compose` command | ||
- run: docker compose up -d | ||
- | ||
name: Database Migrations | ||
run: sleep 5 && docker compose run --rm migrations | ||
- | ||
name: Phpunit Coverage | ||
run: docker compose exec backend ./vendor/bin/phpunit --coverage-text | ||
# - | ||
# name: deploy to cluster | ||
# uses: steebchen/[email protected] | ||
# with: # defaults to latest kubectl binary version | ||
# config: ${{ secrets.KUBE_CONFIG_DATA }} | ||
# command: set image --record deployment/mapasculturais -nredelivre-mapas-dev container=${{ github.repository }}:${{ github.sha }} | ||
php_extensions: xdebug zip sockets pdo_pgsql intl opcache xml curl iconv xmlwriter simplexml | ||
- name: PHPUnit Tests | ||
uses: php-actions/phpunit@v3 | ||
env: | ||
XDEBUG_MODE: coverage | ||
with: | ||
bootstrap: vendor/autoload.php | ||
configuration: phpunit.xml | ||
php_extensions: xdebug zip sockets pdo_pgsql intl opcache xml curl iconv xmlwriter simplexml | ||
args: tests --coverage-clover ./coverage.xml | ||
|
||
# Docs: https://github.com/shivammathur/setup-php | ||
# - | ||
# name: Setup PHP | ||
# uses: shivammathur/setup-php@v2 | ||
# with: | ||
# php-version: ${{ matrix.php-versions }} | ||
# extensions: mbstring, dom, pdo_pgsql, gd, intl, zip, opcache, xml, curl, iconv, xmlwriter, simplexml | ||
# coverage: none # xdebug | ||
# tools: composer | ||
# - | ||
# name: Get composer cache directory | ||
# id: composer-cache | ||
# run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | ||
# - | ||
# name: Cache composer dependencies | ||
# uses: actions/cache@v3 | ||
# with: | ||
# path: ${{ steps.composer-cache.outputs.dir }} | ||
# # Use composer.json for key, if composer.lock is not committed. | ||
# # key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
# key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
# restore-keys: ${{ runner.os }}-composer- | ||
# - | ||
# name: Install dependencies | ||
# run: composer install --no-progress --prefer-dist --optimize-autoloader | ||
# - | ||
# name: Add hosts to /etc/hosts | ||
# run: | | ||
# sudo echo "127.0.0.1 db redis" | sudo tee -a /etc/hosts | ||
# - | ||
# name: Docker compose up | ||
# uses: isbang/[email protected] | ||
# with: | ||
# compose-file: "./docker-compose.yml" | ||
# down-flags: "--volumes" | ||
# services: | | ||
# db | ||
# redis | ||
# migrations | ||
# - | ||
# name: Test with phpunit | ||
# run: docker compose exec backend ls ./vendor/ | ||
# - | ||
# name: Test with phpunit | ||
# run: docker compose exec backend ./vendor/bin/phpunit --coverage-text | ||
- name: Upload to Codecov | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
token: ${{ secrets.CODE_COV_TOKEN }} | ||
files: ./coverage.xml | ||
verbose: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.