-
Notifications
You must be signed in to change notification settings - Fork 2
72 lines (60 loc) · 2.35 KB
/
jsii.yml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
# Workflow syntax reference:
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
name: JSII Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
# This is used by the SharedProps to detect a PR build
PR_NUMBER: ${{ github.event.pull_request.number }}
APP_NAME: release
APP_PACKAGE_NAME: '@pwrdrvr/microapps-app-release'
ENV: dev
jobs:
jsii:
if: github.event_name != 'pull_request' || (github.event_name == 'pull_request' && contains( github.event.pull_request.labels.*.name, 'BUILD-JSII'))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16
#
# Build Construct with JSII
#
# JSII does not work well with monorepos
# - name: Move root NPM modules out of the way
# run: mv node_modules node_modules_hide
- name: Move root package-lock.json out of the way
run: |
mv package-lock.json package-lock.json_hide
mv package.json package.json_hide
- name: Install CDK Construct Deps
working-directory: packages/cdk-construct/
run: |
npm ci
- name: Build with JSII
working-directory: packages/cdk-construct/
run: |
npm run build:jsii-all
# - name: Move root NPM modules back
# run: mv node_modules_hide node_modules
- name: Move root package-lock.json back
run: |
mv package-lock.json_hide package-lock.json
mv package.json_hide package.json
- name: Confirm No Doc Changes
working-directory: packages/cdk-construct/
run: |
git diff --ignore-space-at-eol --exit-code
container:
# 2023-01-04 release broke the build
# ModuleNotFoundError: No module named 'pip._vendor.cachecontrol'
# AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms'
# image: jsii/superchain:1-buster-slim-node16
image: jsii/superchain@sha256:59ec6f7ebea621ab099ceb1eb3a2ac0129a2062f570d78993a39a69b06f93ccb