-
Notifications
You must be signed in to change notification settings - Fork 7
52 lines (44 loc) · 1.38 KB
/
ci.common.yml
File metadata and controls
52 lines (44 loc) · 1.38 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
42
43
44
45
46
47
48
49
50
51
52
name: Common CI
on:
workflow_call:
inputs:
package_name:
required: true
type: string
node_version:
required: true
type: string
queue_backend:
required: false
type: string
default: 'fauxqs'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup Node ${{ inputs.node_version }}
uses: actions/setup-node@v6
with:
node-version: ${{ inputs.node_version }}
package-manager-cache: false
- name: Install
run: npm install --ignore-scripts
- name: Build TS
run: npm run build -- --filter=${{ inputs.package_name }}
- name: Run lint
run: npm run lint -- --filter=${{ inputs.package_name }}
- name: Docker start
run: npm run docker:start:ci -- --filter=${{ inputs.package_name }}
env:
QUEUE_BACKEND: ${{ inputs.queue_backend }}
- name: Run Tests
run: |
echo "::notice::Running ${{ inputs.package_name }} with QUEUE_BACKEND=${{ inputs.queue_backend }}"
npm run test:ci -- --filter=${{ inputs.package_name }}
env:
QUEUE_BACKEND: ${{ inputs.queue_backend }}
- name: Docker stop
run: npm run docker:stop:ci -- --filter=${{ inputs.package_name }}
env:
QUEUE_BACKEND: ${{ inputs.queue_backend }}