mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-26 02:02:39 +00:00
Attempts to fix CI dependency failures (#15709)
* Attempts to fix CI dependency failures * Lets try this * And this * And this
This commit is contained in:
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@@ -10,7 +10,7 @@ on:
|
||||
jobs:
|
||||
run_linters:
|
||||
name: Run Linters
|
||||
runs-on: ubuntu-18.04
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup Cache
|
||||
@@ -37,7 +37,7 @@ jobs:
|
||||
|
||||
compile_all_maps:
|
||||
name: Compile All Maps
|
||||
runs-on: ubuntu-18.04
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup Cache
|
||||
@@ -54,7 +54,7 @@ jobs:
|
||||
|
||||
unit_tests_and_sql:
|
||||
name: Unit Tests + SQL Validation
|
||||
runs-on: ubuntu-18.04
|
||||
runs-on: ubuntu-20.04
|
||||
services:
|
||||
mariadb:
|
||||
image: mariadb:latest
|
||||
|
||||
@@ -7,7 +7,7 @@ ADDRESS 127.0.0.1
|
||||
PORT 3306
|
||||
FEEDBACK_DATABASE feedback
|
||||
FEEDBACK_TABLEPREFIX
|
||||
FEEDBACK_LOGIN ci_sql
|
||||
FEEDBACK_PASSWORD not_a_strong_password
|
||||
FEEDBACK_LOGIN root
|
||||
FEEDBACK_PASSWORD root
|
||||
ASYNC_QUERY_TIMEOUT 10
|
||||
RUST_SQL_THREAD_LIMIT 50
|
||||
|
||||
@@ -45,7 +45,7 @@ scriptLines = [
|
||||
"#!/bin/bash\n",
|
||||
"set -euo pipefail\n"
|
||||
"python3 -m pip install setuptools\n" # Yes I know you can PIP multiple things but they need to happen in this order
|
||||
"python3 -m pip install mysql-connector\n"
|
||||
"python3 -m pip install mysql-connector-python\n"
|
||||
"mysql -u root -proot < tools/ci/sql_v0.sql\n"
|
||||
]
|
||||
|
||||
@@ -79,7 +79,6 @@ scriptLines.append("mysql -u root -proot -e 'DROP DATABASE feedback;'\n")
|
||||
scriptLines.append("mysql -u root -proot < SQL/paradise_schema_prefixed.sql\n")
|
||||
scriptLines.append("mysql -u root -proot -e 'DROP DATABASE feedback;'\n")
|
||||
scriptLines.append("mysql -u root -proot < SQL/paradise_schema.sql\n")
|
||||
scriptLines.append("mysql -u root -proot -e 'GRANT ALL on feedback.* TO `ci_sql`@`127.0.0.1` IDENTIFIED BY \"not_a_strong_password\";'\n")
|
||||
|
||||
outputScript = open("tools/ci/validate_sql.sh", "w+")
|
||||
outputScript.writelines(scriptLines)
|
||||
|
||||
Reference in New Issue
Block a user