mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 01:39:22 +02:00
cypress-workflow: config.lua move + replace values
This commit is contained in:
parent
d911b55e25
commit
80af2cd691
33
.github/workflows/cypress.yml
vendored
33
.github/workflows/cypress.yml
vendored
@ -14,7 +14,9 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
MYSQL_ALLOW_EMPTY_PASSWORD: false
|
MYSQL_ALLOW_EMPTY_PASSWORD: false
|
||||||
MYSQL_ROOT_PASSWORD: password
|
MYSQL_ROOT_PASSWORD: password
|
||||||
MYSQL_DATABASE: myaac-tfs-latest
|
MYSQL_DATABASE: myaac-tfs
|
||||||
|
MYSQL_USER: myaac
|
||||||
|
MYSQL_PASSWORD: myaac
|
||||||
ports:
|
ports:
|
||||||
- 3306/tcp
|
- 3306/tcp
|
||||||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
|
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
|
||||||
@ -35,6 +37,33 @@ jobs:
|
|||||||
ref: 1.4
|
ref: 1.4
|
||||||
path: tfs
|
path: tfs
|
||||||
|
|
||||||
|
- name: Rename config.lua
|
||||||
|
run: mv tfs/config.lua.dist tfs/config.lua
|
||||||
|
|
||||||
|
- name: Replace mysqlUser
|
||||||
|
uses: jacobtomlinson/gha-find-replace@v2
|
||||||
|
with:
|
||||||
|
find: 'mysqlUser = "forgottenserver"'
|
||||||
|
replace: 'mysqlUser = "myaac"'
|
||||||
|
regex: false
|
||||||
|
include: 'config.lua'
|
||||||
|
|
||||||
|
- name: Replace mysqlPassword
|
||||||
|
uses: jacobtomlinson/gha-find-replace@v2
|
||||||
|
with:
|
||||||
|
find: 'mysqlPassword = ""'
|
||||||
|
replace: 'mysqlPassword = "myaac"'
|
||||||
|
regex: false
|
||||||
|
include: 'config.lua'
|
||||||
|
|
||||||
|
- name: Replace mysqlDatabase
|
||||||
|
uses: jacobtomlinson/gha-find-replace@v2
|
||||||
|
with:
|
||||||
|
find: 'mysqlDatabase = "forgottenserver"'
|
||||||
|
replace: 'mysqlDatabase = "myaac-tfs-latest"'
|
||||||
|
regex: false
|
||||||
|
include: 'config.lua'
|
||||||
|
|
||||||
- run: ls -lha
|
- run: ls -lha
|
||||||
- name: Setup PHP
|
- name: Setup PHP
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
@ -65,7 +94,7 @@ jobs:
|
|||||||
uses: cypress-io/github-action@v5
|
uses: cypress-io/github-action@v5
|
||||||
env:
|
env:
|
||||||
CYPRESS_URL: http://localhost:8080
|
CYPRESS_URL: http://localhost:8080
|
||||||
CYPRESS_SERVER_PATH: /home/runner/work/myaac/myaac/tfs
|
CYPRESS_SERVER_PATH: tfs
|
||||||
|
|
||||||
- name: Save screenshots
|
- name: Save screenshots
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user