Merge pull request #76 from medeirosinacio/patch-quotes #26
Workflow file for this run
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
name: laravel-pt-BR-localization | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Create a new project | |
run: composer create-project --prefer-dist laravel/laravel blog | |
- name: Scaffold the lang directory | |
run: php artisan lang:publish | |
working-directory: ./blog | |
- name: Installs laravel-pt-BR-localization | |
run: composer require lucascudo/laravel-pt-br-localization --dev | |
working-directory: ./blog | |
- name: Override laravel-pt-BR-localization content at vendor directory | |
run: cp -rf composer.json src blog/vendor/lucascudo/laravel-pt-br-localization/ | |
- name: Publish translation | |
run: php artisan vendor:publish --tag=laravel-pt-br-localization && ls lang | |
working-directory: ./blog | |
- name: Verify pt_BR.json | |
run: test -f pt_BR.json | |
working-directory: ./blog/lang | |
- name: Verify auth.php | |
run: test -f auth.php | |
working-directory: ./blog/lang/pt_BR | |
- name: Verify pagination.php | |
run: test -f pagination.php | |
working-directory: ./blog/lang/pt_BR | |
- name: Verify passwords.php | |
run: test -f passwords.php | |
working-directory: ./blog/lang/pt_BR | |
- name: Verify validation.php | |
run: test -f validation.php | |
working-directory: ./blog/lang/pt_BR | |
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit" | |
# Docs: https://getcomposer.org/doc/articles/scripts.md | |
# - name: Run test suite | |
# run: composer run-script test |