mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-03-25 17:51:37 +08:00
Disable IPv6 in Github Actions (#3921)
Attempts a fix for ERR_NETWORK_CHANGED by disabling IPv6 from sysctl Affects issues: - Close #3535
This commit is contained in:
parent
59bb32f315
commit
9bb8ce1cfb
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -91,10 +91,12 @@ jobs:
|
||||
while ! mysqladmin ping -h"127.0.0.1" -P"$PORT" --silent; do
|
||||
sleep 1
|
||||
done
|
||||
- name: 📶 Setup DNS to avoid ERR_NETWORK_CHANGED
|
||||
- name: 📶 Setup to avoid ERR_NETWORK_CHANGED
|
||||
run: |
|
||||
sudo resolvectl dns eth0 1.1.1.1
|
||||
sudo resolvectl domain eth0 "~."
|
||||
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
|
||||
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
|
||||
- name: 🩺 Test
|
||||
env:
|
||||
MYSQL_DB: test
|
||||
@ -136,7 +138,7 @@ jobs:
|
||||
./gradlew sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=player-analytics-plan
|
||||
- name: 🩺 SonarCloud - React
|
||||
if: "${{ env.SONAR_TOKEN != '' }}"
|
||||
uses: SonarSource/sonarcloud-github-action@master
|
||||
uses: SonarSource/sonarqube-scan-action@master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user