[Snyk] Security upgrade node from 20.12.2-slim to iron-bookworm-slim #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
cache: 'npm' | |
node-version-file: '.nvmrc' | |
- name: Install nango CLI | |
run: | | |
# Build, install CLI and verify it can run | |
npm ci | |
npm run ts-build | |
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/$dir | |
mv nango.yaml nango-integrations/ | |
find . -maxdepth 1 ! -name '.' ! -name 'nango-integrations' -exec mv -t nango-integrations/$dir {} + | |
cd nango-integrations | |
NANGO_CLI_UPGRADE_MODE=ignore nango compile | |
cd ../../ | |
fi | |
done |