-
-
Notifications
You must be signed in to change notification settings - Fork 212
56 lines (41 loc) · 1.64 KB
/
master.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: lucascudo/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: Clean vendor directory
run: rm -rf blog/vendor/lucascudo/laravel-pt-br-localization/*
- 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 translations
run: php artisan vendor:publish --tag=laravel-pt-br-localization
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