Skip to content

Commit

Permalink
Fix canary build
Browse files Browse the repository at this point in the history
  • Loading branch information
slawkens committed Feb 17, 2024
1 parent cac592e commit 2b39a1e
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/cypress.yml
Expand Up @@ -23,7 +23,7 @@ jobs:
fail-fast: false
matrix:
php-versions: [ '8.1', '8.2', '8.3' ]
ots: ['tfs-master', 'tfs-1.4', 'canary-3.1.2']
ots: ['tfs-1.4', 'canary-3.1.2'] # TODO: add 'tfs-master' (actually doesn't work cause AAC doesn't support reading .env configuration)
name: Cypress on PHP ${{ matrix.php-versions }} - ${{ matrix.ots }}
steps:
- name: 📌 MySQL Start & init & show db
Expand Down Expand Up @@ -68,30 +68,42 @@ jobs:
- name: Rename config.lua
run: mv ots/config.lua.dist ots/config.lua

- name: Replace mysqlUser
- name: Replace mysqlUser (TFS 1.4)
uses: jacobtomlinson/gha-find-replace@v2
if: matrix.ots == 'tfs-1.4'
with:
find: 'mysqlUser = "forgottenserver"'
replace: 'mysqlUser = "root"'
regex: false
include: 'ots/config.lua'

- name: Replace mysqlPass
- name: Replace mysqlPass (TFS 1.4)
uses: jacobtomlinson/gha-find-replace@v2
if: matrix.ots == 'tfs-1.4'
with:
find: 'mysqlPass = ""'
replace: 'mysqlPass = "root"'
regex: false
include: 'ots/config.lua'

- name: Replace mysqlDatabase
- name: Replace mysqlDatabase (TFS 1.4)
uses: jacobtomlinson/gha-find-replace@v2
if: matrix.ots == 'tfs-1.4'
with:
find: 'mysqlDatabase = "forgottenserver"'
replace: 'mysqlDatabase = "myaac"'
regex: false
include: 'ots/config.lua'

- name: Replace mysqlDatabase (Canary)
uses: jacobtomlinson/gha-find-replace@v2
if: matrix.ots == 'canary-3.1.2'
with:
find: 'mysqlDatabase = "otservbr-global"'
replace: 'mysqlDatabase = "myaac"'
regex: false
include: 'ots/config.lua'

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
Expand Down

0 comments on commit 2b39a1e

Please sign in to comment.