-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (33 loc) · 1.13 KB
/
Copy pathci.common.yml
File metadata and controls
41 lines (33 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Common CI
on:
workflow_call:
inputs:
package_name:
required: true
type: string
node_version:
required: true
type: string
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node ${{ inputs.node_version }}
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node_version }}
- name: Install
run: npm install --ignore-scripts
# We need to trigger the rebuild of @confluentinc/kafka-javascript to run scrips
- name: Run @confluentic/kafka-javascript scripts
if: ${{ inputs.package_name == '@message-queue-toolkit/kafka' }}
run: npm rebuild rebuild @confluentinc/kafka-javascript
- name: Build TS
run: npm run build -- --filter=${{ inputs.package_name }}
- name: Docker start
run: npm run docker:start:ci -- --filter=${{ inputs.package_name }}
- name: Run Tests
run: npm run test:ci -- --filter=${{ inputs.package_name }}
- name: Docker stop
run: npm run docker:stop:ci -- --filter=${{ inputs.package_name }}