forked from kibertoad/message-queue-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 962 Bytes
/
ci.common.yml
File metadata and controls
39 lines (31 loc) · 962 Bytes
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
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@v5
- name: Setup Node ${{ inputs.node_version }}
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node_version }}
- name: Install
run: npm install --ignore-scripts
- 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 }}
- name: Run lint
run: npm run lint -- --filter=${{ inputs.package_name }}