Add PostgreSQL replication provider #37
This file contains hidden or 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: upgrade | |
| on: [pull_request] | |
| jobs: | |
| upgrade: | |
| runs-on: ubuntu-latest | |
| # strategy: | |
| # matrix: | |
| # backend: [sqlite, MySQL] | |
| steps: | |
| - name: check out | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.25.7' | |
| cache: true | |
| - name: Start local MySQL | |
| run: sudo /etc/init.d/mysql start | |
| - name: copy config file template | |
| run: | | |
| cp conf/orchestrator-ci-upgrade.conf.json /tmp | |
| - name: generate SQLite config file | |
| run: | | |
| test_config_file=/tmp/orchestrator-ci-sqlite.conf.json | |
| cp /tmp/orchestrator-ci-upgrade.conf.json ${test_config_file} | |
| sed -i -e "s/backend-db-placeholder/sqlite/g" ${test_config_file} | |
| echo "SQLite config generated" | |
| - name: generate MySQL config file | |
| run: | | |
| test_config_file=/tmp/orchestrator-ci-mysql.conf.json | |
| cp /tmp/orchestrator-ci-upgrade.conf.json ${test_config_file} | |
| sed -i -e "s/backend-db-placeholder/mysql/g" ${test_config_file} | |
| echo "MySQL config generated" | |
| - name: check out master branch | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: master | |
| - name: build master | |
| run: script/test-build | |
| - name: execute master via SQLite | |
| run: | | |
| test_config_file=/tmp/orchestrator-ci-sqlite.conf.json | |
| bin/orchestrator --config=$test_config_file -c clusters | |
| - name: execute master via MySQL | |
| run: | | |
| test_config_file=/tmp/orchestrator-ci-mysql.conf.json | |
| bin/orchestrator --config=$test_config_file -c clusters | |
| - name: check out PR branch | |
| uses: actions/checkout@v4 | |
| - name: build branch | |
| run: script/test-build | |
| - name: execute branch via SQLite | |
| run: | | |
| test_config_file=/tmp/orchestrator-ci-sqlite.conf.json | |
| bin/orchestrator --config=$test_config_file -c clusters | |
| - name: execute branch via MySQL | |
| run: | | |
| test_config_file=/tmp/orchestrator-ci-mysql.conf.json | |
| bin/orchestrator --config=$test_config_file -c clusters |