-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: cli fails to export image on windows (#281)
Resolves #280
- Loading branch information
Showing
19 changed files
with
537 additions
and
138 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,46 @@ | ||
name: Bootstrap | ||
description: Checkout the project and install dependencies | ||
description: Init Node.js, caches and install dependencies | ||
|
||
inputs: | ||
node-version: | ||
description: 'The version of Node.js to use' | ||
required: false | ||
default: '18' | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18.x' | ||
|
||
- name: get yarn cache directory | ||
shell: bash | ||
id: yarn-cachedir | ||
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT | ||
node-version: ${{ inputs.node-version }} | ||
|
||
- name: yarn caches | ||
uses: actions/cache@v3 | ||
if: github.ref == 'refs/heads/main' | ||
# if: github.ref == 'refs/heads/main' | ||
with: | ||
path: ${{ steps.yarn-cachedir.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} | ||
path: | | ||
.yarn/cache | ||
# ${{ github.workspace }}/node_modules/.cache/turbo | ||
key: ${{ runner.os }}-yarn-${{ inputs.node-version }}-${{ hashFiles('yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn-${{ inputs.node-version }}- | ||
${{ runner.os }}-yarn- | ||
- name: restore only caches | ||
uses: actions/cache/restore@v3 | ||
if: github.ref != 'refs/heads/main' | ||
with: | ||
path: ${{ steps.yarn-cachedir.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
# - name: restore only caches | ||
# uses: actions/cache/restore@v3 | ||
# if: github.ref != 'refs/heads/main' | ||
# with: | ||
# path: | | ||
# .yarn/cache | ||
# .yarn/install-state.gz | ||
# node_modules/.cache/turbo | ||
# key: ${{ runner.os }}-yarn-${{ inputs.node-version }}-${{ hashFiles('yarn.lock') }} | ||
# restore-keys: | | ||
# ${{ runner.os }}-yarn-${{ inputs.node-version }}- | ||
# ${{ runner.os }}-yarn- | ||
|
||
- name: install dependencies | ||
shell: bash | ||
env: | ||
YARN_CACHE_FOLDER: .yarn/cache | ||
run: yarn install --immutable |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Build and Test [Push] | ||
|
||
on: | ||
push: | ||
tags-ignore: | ||
- "*" | ||
branches-ignore: | ||
- "main" | ||
- "releases/*" | ||
|
||
concurrency: | ||
group: ${{ github.ref }}-push-build | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
if: "!contains(github.event.head_commit.message, 'ci skip')" | ||
timeout-minutes: 10 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [windows-latest, ubuntu-latest] | ||
node-version: [18, 20] | ||
include: | ||
|
||
- node-version: 20 | ||
test_cli: true | ||
|
||
- os: ubuntu-latest | ||
node-version: 20 | ||
build_docs: true | ||
|
||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Bootstrap | ||
uses: ./.github/actions/bootstrap | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Init turborepo-cache | ||
if: runner.os != 'Windows' | ||
uses: dtinth/setup-github-actions-caching-for-turbo@v1 | ||
|
||
- name: Build and Compile packages | ||
run: yarn ci:build | ||
|
||
- name: Test | ||
run: yarn test | ||
|
||
- if: ${{ matrix.test_cli }} | ||
name: Run СLI test | ||
run: yarn node integration/like4-cli-tests/run-suit.mjs | ||
|
||
- if: ${{ matrix.test_cli }} | ||
name: Upload CLI test artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: cli-test-artifacts-${{ matrix.os }}-${{ matrix.node-version }} | ||
path: integration/like4-cli-tests/out/ | ||
retention-days: 5 | ||
|
||
- if: ${{ matrix.build_docs }} | ||
name: Build Docs | ||
working-directory: docs | ||
run: yarn turbo-build |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
out/* |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
specification { | ||
|
||
element actor { | ||
style { | ||
shape person | ||
} | ||
} | ||
|
||
element system | ||
element container | ||
element component | ||
element app | ||
|
||
element mobileApp { | ||
style { | ||
shape mobile | ||
} | ||
} | ||
|
||
element queue { | ||
style { | ||
shape queue | ||
} | ||
} | ||
|
||
element database { | ||
style { | ||
shape storage | ||
} | ||
} | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
model { | ||
|
||
amazon = system 'Amazon' { | ||
description: 'Cloud and managed services provider' | ||
|
||
rds = container 'RDS' { | ||
description: 'Relational Databases' | ||
style { | ||
shape cylinder | ||
icon https://icons.terrastruct.com/aws%2FDatabase%2FAmazon-RDS_Amazon-RDS_instance_light-bg.svg | ||
} | ||
|
||
pg = database 'PostgreSQL' { | ||
technology 'AWS Aurora' | ||
description: 'Database for storing relational data' | ||
style { | ||
icon https://icons.terrastruct.com/dev%2Fpostgresql.svg | ||
} | ||
} | ||
|
||
mysql = database 'MySQL' { | ||
technology 'AWS Aurora' | ||
description: 'Database for storing relational data' | ||
style { | ||
icon https://icons.terrastruct.com/dev%2Fmysql.svg | ||
color indigo | ||
} | ||
} | ||
|
||
} | ||
|
||
cognito = component 'Cognito' { | ||
description: 'User management and authentication' | ||
} | ||
|
||
ses = component 'SES' { | ||
description: 'Email sending' | ||
} | ||
|
||
ses -> customer 'sends emails' | ||
} | ||
|
||
} | ||
|
||
views { | ||
|
||
view amazon of amazon { | ||
title: "Overview Amazon" | ||
include *, cloud, cloud.* -> amazon | ||
} | ||
|
||
view amazon_rds of rds { | ||
title: 'Overview Amazon RDS' | ||
|
||
include *, | ||
amazon, | ||
cloud.backend.* -> rds | ||
} | ||
|
||
view amazon_cognito of cognito { | ||
title: 'Overview Amazon Cognito' | ||
|
||
include *, amazon | ||
} | ||
|
||
} |
Oops, something went wrong.