@@ -4,50 +4,51 @@ on: # yamllint disable-line rule:truthy
4
4
push :
5
5
branches :
6
6
- ' master'
7
- tags :
8
- - ' v*.*.*'
9
7
pull_request :
10
8
branches :
11
9
- ' master'
12
- release :
13
- types :
14
- - ' created'
15
- schedule :
16
- # Every Sunday at 05:10
17
- - cron : ' 10 5 * * 0'
18
10
19
11
name : 🔍 Continuous integration
20
12
21
13
jobs :
22
14
build :
23
- runs-on : ${{ matrix.os }}
24
- strategy :
25
- fail-fast : false
26
- matrix :
27
- os :
28
- - ubuntu-latest
15
+ timeout-minutes : 4
16
+ runs-on : ubuntu-latest
29
17
steps :
30
- - name : 📦 Install goss
31
- uses : e1himself/goss-installation-action@v1.2.1
32
-
33
18
- name : 📦 Check out the codebase
34
19
uses : actions/checkout@v4.1.6
35
20
36
- # ## For Cross Platform OSX builds uncomment these lines
37
- - name : 🖥️ Set up QEMU
38
- uses : docker/setup-qemu-action@v3
39
- with :
40
- platforms : arm64
41
-
42
- - name : 🚀 Set up Docker BuildX
43
- uses : docker/setup-buildx-action@v3
44
- with :
45
- install : true
21
+ - name : Add dns to /etc/resolv.conf
22
+ run : |
23
+ echo "Adding dns to /etc/resolv.conf..."
24
+ echo "nameserver 127.0.0.1" | sudo tee -a /etc/resolv.conf
25
+ echo "nameserver 8.8.8.8" | sudo tee -a /etc/resolv.conf
26
+
27
+ - name : 🔍 Check if TCP/UDP port 53 is in use (netstat)
28
+ run : |
29
+ echo "Checking if TCP/UDP port 53 is in use using netstat..."
30
+ netstat -tuln | grep ':53 ' || echo "Port 53 is not in use"
31
+
32
+ - name : 📋 List all services using port 53 (ss)
33
+ run : |
34
+ echo "Listing all services using port 53 using ss..."
35
+ ss -tuln | grep ':53 ' || echo "No services using port 53"
36
+
37
+ - name : ❌ Attempt to stop any service using TCP/UDP port 53
38
+ run : |
39
+ echo "Stopping services using port 53..."
40
+ fuser -k 53/tcp || echo "No TCP service to stop on port 53"
41
+ fuser -k 53/udp || echo "No UDP service to stop on port 53"
42
+
43
+ - name : 🔍 Verify if TCP/UDP port 53 is free (ss)
44
+ run : |
45
+ echo "Verifying if port 53 is free using ss..."
46
+ ss -tuln | grep ':53 ' || echo "Port 53 is now free"
46
47
47
48
- name : 🌎 Generate .env file
48
49
run : make env
49
50
50
- - name : 🐳 Start Docker Compose services
51
+ - name : 🏗️ Start docker-compose services
51
52
run : make up
52
53
53
54
...
0 commit comments