@@ -44,77 +44,18 @@ jobs:
4444 runs-on : ubuntu-latest
4545 timeout-minutes : 60
4646
47- services :
48- postgres :
49- image : postgres
50- env :
51- POSTGRES_USER : postgres
52- POSTGRES_HOST_AUTH_METHOD : trust
53- ports :
54- - 5432:5432
55- options : >-
56- --health-cmd pg_isready
57- --health-interval 10s
58- --health-timeout 5s
59- --health-retries 5
60-
61- rabbitmq :
62- image : rabbitmq
63- env :
64- RABBITMQ_DEFAULT_USER : guest
65- RABBITMQ_DEFAULT_PASS : guest
66- ports :
67- - 5672:5672
68-
6947 steps :
7048 - name : Checkout
71- uses : actions/checkout@v5
49+ uses : actions/checkout@v6
7250
7351 - name : ' Setup Environment'
7452 uses : panates/ghac-setup-node@v1
7553 with :
7654 node-version : ' 20.19.2'
7755 token : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
7856
79- - name : Start MongoDB
80- uses : supercharge/mongodb-github-action@1.11.0
81- with :
82- mongodb-version : 8.0
83- mongodb-replica-set : test-rs
84-
85- - name : Configure sysctl limits
86- run : |
87- sudo swapoff -a
88- sudo sysctl -w vm.swappiness=1
89- sudo sysctl -w fs.file-max=262144
90- sudo sysctl -w vm.max_map_count=262144
91-
92- - name : Runs Elasticsearch
93- uses : elastic/elastic-github-actions/elasticsearch@master
94- with :
95- stack-version : 9.0.0
96- security-enabled : false
97-
98- - name : Run Kafka KRaft Broker
99- uses : spicyparrot/kafka-kraft-action@v1.1.3
100- with :
101- kafka-version : " 3.7.0"
102- kafka-topics : " feed-cat,1,feed-dog,1,email-channel-1,1,email-channel-2,1,sms-channel-1,1,sms-channel-2,1"
103-
10457 - name : Install rman
10558 run : npm install rman -g
10659
10760 - name : Run qc tests
10861 run : rman run qc
109-
110- - name : Run unit tests
111- run : npm run citest
112- env :
113- NODE_OPTIONS : " --max_old_space_size=4096"
114- KAFKA_BROKER : localhost:9092
115- ELASTIC_HOST : http://localhost:9200
116-
117- - name : Send coverage to Coveralls
118- uses : coverallsapp/github-action@v2
119- with :
120- github-token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments