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:
Aurora Lahtela 2025-01-06 17:08:39 +02:00 committed by GitHub
parent 59bb32f315
commit 9bb8ce1cfb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 }}