Skip to content

Commit 693d6eb

Browse files
authored
Chore: New Github CI actions (#265)
* amqp new action test * Adjusting amqp CI * Adding new input * Trying to combine action * Revert "Trying to combine action" This reverts commit 60d31f8. * Fix amqp action * replacing old CI * Name fix * Adding automerge
1 parent bb66007 commit 693d6eb

1 file changed

Lines changed: 18 additions & 38 deletions

File tree

.github/workflows/ci.yml

Lines changed: 18 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: ci
1+
name: CI
22

33
on:
44
push:
@@ -7,48 +7,28 @@ on:
77
pull_request:
88

99
jobs:
10-
build:
11-
runs-on: ubuntu-latest
12-
10+
call-ci-flow:
1311
strategy:
1412
matrix:
1513
node-version: [18.x, 20.x, 22.x, 23.x]
16-
17-
steps:
18-
- uses: actions/checkout@v4
19-
20-
- name: Setup Node ${{ matrix.node-version }}
21-
uses: actions/setup-node@v4
22-
with:
23-
node-version: ${{ matrix.node-version }}
24-
25-
- name: Install
26-
run: |
27-
npm install --ignore-scripts
28-
29-
# We need to run node-rdkafka scripts
30-
- name: Run node-rdkafka scripts
31-
working-directory: packages/kafka
32-
run: npm rebuild node-rdkafka
33-
34-
- name: Docker start
35-
run: |
36-
npm run docker:start
37-
38-
- name: Build TS
39-
run: |
40-
npm run build
41-
42-
- name: Run Tests
43-
run: |
44-
npm run test:ci
45-
46-
- name: Docker stop
47-
run: |
48-
npm run docker:stop
14+
package-name: [
15+
'@message-queue-toolkit/amqp',
16+
'@message-queue-toolkit/core',
17+
'@message-queue-toolkit/metrics',
18+
'@message-queue-toolkit/outbox-core',
19+
'@message-queue-toolkit/redis-message-deduplication-store',
20+
'@message-queue-toolkit/s3-payload-store',
21+
'@message-queue-toolkit/schemas',
22+
'@message-queue-toolkit/sns',
23+
'@message-queue-toolkit/sqs'
24+
]
25+
uses: kibertoad/message-queue-toolkit/.github/workflows/ci.common.yml@main
26+
with:
27+
node_version: ${{ matrix.node-version }}
28+
package_name: ${{ matrix.package-name }}
4929

5030
automerge:
51-
needs: build
31+
needs: [ call-ci-flow ]
5232
runs-on: ubuntu-latest
5333
permissions:
5434
pull-requests: write

0 commit comments

Comments
 (0)