Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update machine image #391

Merged
merged 2 commits into from
Jul 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 34 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ jobs:

tests:
machine:
image: ubuntu-2004:202104-01
image: ubuntu-2204:2022.04.2
description: "tests"
steps:
- checkout-and-merge-to-main
Expand All @@ -205,19 +205,25 @@ jobs:
working_directory: "~/project/npm-js/kalix-scripts"
command: |
export KALIX_NPMJS_CODEGEN_BINARY="${HOME}/project/codegen/js-gen-cli/target/native-image/kalix-codegen-js"
source /opt/circleci/.nvm/nvm.sh
nvm install
npm ci
npm pack
- run:
name: "build sdk"
working_directory: "~/project/sdk"
command: |
source /opt/circleci/.nvm/nvm.sh
nvm install
npm ci
npm test
npm pack
- run:
name: "build testkit"
working_directory: "~/project/testkit"
command: |
source /opt/circleci/.nvm/nvm.sh
nvm install
npm ci
npm install ../sdk/kalix-io-kalix-javascript-sdk-0.0.0.tgz
npm test
Expand All @@ -231,6 +237,8 @@ jobs:
name: "Test quickstart: JS Customer Registry"
working_directory: "~/tmp"
command: |
source /opt/circleci/.nvm/nvm.sh
pushd ~/project/sdk && nvm install && popd
# use the bundled quickstart to check against what the user will download
unzip -d js-customer-registry ~/project/docs/build/src/managed/modules/javascript/attachments/js-customer-registry-quickstart.zip
cd js-customer-registry
Expand All @@ -246,6 +254,8 @@ jobs:
name: "Test quickstart: JS Shopping Cart"
working_directory: "~/tmp"
command: |
source /opt/circleci/.nvm/nvm.sh
pushd ~/project/sdk && nvm install && popd
# use the bundled quickstart to check against what the user will download
unzip -d js-shopping-cart ~/project/docs/build/src/managed/modules/javascript/attachments/js-shopping-cart-quickstart.zip
cd js-shopping-cart
Expand All @@ -261,6 +271,8 @@ jobs:
name: "Test quickstart: TS Customer Registry"
working_directory: "~/tmp"
command: |
source /opt/circleci/.nvm/nvm.sh
pushd ~/project/sdk && nvm install && popd
# use the bundled quickstart to check against what the user will download
unzip -d ts-customer-registry ~/project/docs/build/src/managed/modules/javascript/attachments/ts-customer-registry-quickstart.zip
cd ts-customer-registry
Expand All @@ -276,6 +288,8 @@ jobs:
name: "Test quickstart: TS Shopping Cart"
working_directory: "~/tmp"
command: |
source /opt/circleci/.nvm/nvm.sh
pushd ~/project/sdk && nvm install && popd
# use the bundled quickstart to check against what the user will download
unzip -d ts-shopping-cart ~/project/docs/build/src/managed/modules/javascript/attachments/ts-shopping-cart-quickstart.zip
cd ts-shopping-cart
Expand All @@ -290,6 +304,8 @@ jobs:
- run:
name: "Test JS Value Entity Counter sample"
command: |
source /opt/circleci/.nvm/nvm.sh
pushd ~/project/sdk && nvm install && popd
cd samples/js/valueentity-counter
# don't download, use the one we built
export KALIX_NPMJS_CODEGEN_BINARY="${HOME}/project/codegen/js-gen-cli/target/native-image/kalix-codegen-js"
Expand All @@ -303,6 +319,8 @@ jobs:
- run:
name: "Test JS Value Entity Shopping Cart sample"
command: |
source /opt/circleci/.nvm/nvm.sh
pushd ~/project/sdk && nvm install && popd
cd samples/js/js-valueentity-shopping-cart
# don't download, use the one we built
export KALIX_NPMJS_CODEGEN_BINARY="${HOME}/project/codegen/js-gen-cli/target/native-image/kalix-codegen-js"
Expand All @@ -316,6 +334,8 @@ jobs:
- run:
name: "Test JS Event Sourced Entity Shopping Cart sample"
command: |
source /opt/circleci/.nvm/nvm.sh
pushd ~/project/sdk && nvm install && popd
cd samples/js/js-eventsourced-shopping-cart
# don't download, use the one we built
export KALIX_NPMJS_CODEGEN_BINARY="${HOME}/project/codegen/js-gen-cli/target/native-image/kalix-codegen-js"
Expand All @@ -329,6 +349,8 @@ jobs:
- run:
name: "Test TS Value Entity Counter sample"
command: |
source /opt/circleci/.nvm/nvm.sh
pushd ~/project/sdk && nvm install && popd
cd samples/ts/ts-valueentity-counter
# don't download, use the one we built
export KALIX_NPMJS_CODEGEN_BINARY="${HOME}/project/codegen/js-gen-cli/target/native-image/kalix-codegen-js"
Expand All @@ -342,6 +364,8 @@ jobs:
- run:
name: "Test TS Value Entity Shopping Cart sample"
command: |
source /opt/circleci/.nvm/nvm.sh
pushd ~/project/sdk && nvm install && popd
cd samples/ts/ts-valueentity-shopping-cart
# don't download, use the one we built
export KALIX_NPMJS_CODEGEN_BINARY="${HOME}/project/codegen/js-gen-cli/target/native-image/kalix-codegen-js"
Expand All @@ -355,6 +379,8 @@ jobs:
- run:
name: "Test TS Event Sourced Entity Shopping Cart sample"
command: |
source /opt/circleci/.nvm/nvm.sh
pushd ~/project/sdk && nvm install && popd
cd samples/ts/ts-eventsourced-shopping-cart
# don't download, use the one we built
export KALIX_NPMJS_CODEGEN_BINARY="${HOME}/project/codegen/js-gen-cli/target/native-image/kalix-codegen-js"
Expand All @@ -368,7 +394,7 @@ jobs:

integration-tests:
machine:
image: ubuntu-2004:202104-01
image: ubuntu-2204:2022.04.2
description: "integration tests"
steps:
- checkout-and-merge-to-main
Expand Down Expand Up @@ -636,7 +662,7 @@ jobs:

tck-tests:
machine:
image: ubuntu-2004:202104-01
image: ubuntu-2204:2022.04.2
description: "TCK tests"
steps:
- checkout-and-merge-to-main
Expand All @@ -649,7 +675,7 @@ jobs:

validate-docs:
machine:
image: ubuntu-2004:202104-01
image: ubuntu-2204:2022.04.2
description: "validate docs"
steps:
- checkout-and-merge-to-main
Expand Down Expand Up @@ -692,7 +718,7 @@ jobs:

publish-tck:
machine:
image: ubuntu-2004:202104-01
image: ubuntu-2204:2022.04.2
description: "publish TCK"
steps:
- checkout
Expand All @@ -705,7 +731,7 @@ jobs:

publish-docs:
machine:
image: ubuntu-2004:202104-01
image: ubuntu-2204:2022.04.2
description: "publish docs"
steps:
- checkout
Expand Down Expand Up @@ -810,7 +836,7 @@ jobs:

e2e-tests:
machine:
image: ubuntu-2004:202104-01
image: ubuntu-2204:2022.04.2
description: "e2e-tests"
steps:
- checkout-and-merge-to-main
Expand Down Expand Up @@ -893,7 +919,7 @@ jobs:

publish_native_linux:
machine:
image: ubuntu-2004:202104-01
image: ubuntu-2204:2022.04.2
description: "Build Native image on Linux"
steps:
- checkout
Expand Down