-
Notifications
You must be signed in to change notification settings - Fork 368
48 lines (41 loc) · 1.53 KB
/
integration-flows.yaml
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
name: Nango Integration Flows Compile
on:
push:
branches:
- master
- staging/**
pull_request:
concurrency:
group: flows-compile--${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
flow-compilation:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install nango CLI
run: |
# Build, install CLI and verify it can run
npm install
npm run build -w @nangohq/node -w @nangohq/utils -w @nangohq/shared -w nango
npm install -g ./packages/cli
NANGO_CLI_UPGRADE_MODE=ignore nango version --debug
- name: Compile with Nango
run: |
set -e
cd integration-templates
for dir in */; do
if [[ "$dir" != "." && "$dir" != "integration-templates/" ]]; then
cd "$dir"
mkdir -p nango-integrations
find . -maxdepth 1 ! -name '.' ! -name 'nango-integrations' -exec mv -t nango-integrations {} +
cd nango-integrations
NANGO_CLI_UPGRADE_MODE=ignore nango compile
cd ../../
fi
done