-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #444 from YOU54F/master-pf
CI: Test across Node 16/18/20 + arm64 MacOS test
- Loading branch information
Showing
7 changed files
with
101 additions
and
58 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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
env: | ||
PACT_BROKER_FEATURES: publish_pacts_using_old_api | ||
|
||
BUILD_TEST_TASK_TEMPLATE: &BUILD_TEST_TASK_TEMPLATE | ||
arch_check_script: | ||
- uname -am | ||
test_script: | ||
- node --version | ||
- script/ci/build-and-test.sh | ||
|
||
# These are probably expected to fail in the post install script | ||
# until we are packing v2.0.0 of pact-ruby-standalone that supports | ||
# arm64 linux - as per https://github.com/pact-foundation/pact-js-core/issues/416 | ||
# Error: Error while locating pact binary: Cannot find binary for platform 'linux' with architecture 'arm64'. | ||
# linux_arm64_task: | ||
# skip: "changesInclude('.github/**')" | ||
# env: | ||
# matrix: | ||
# - IMAGE: node:16-slim | ||
# - IMAGE: node:18-slim | ||
# - IMAGE: node:20-slim | ||
# arm_container: | ||
# image: $IMAGE | ||
# install_script: | ||
# - apt update --yes && apt install --yes curl python3 make build-essential g++ unzip zip | ||
# << : *BUILD_TEST_TASK_TEMPLATE | ||
|
||
linux_amd64_task: | ||
env: | ||
matrix: | ||
- IMAGE: node:16-slim | ||
- IMAGE: node:18-slim | ||
- IMAGE: node:20-slim | ||
container: | ||
image: $IMAGE | ||
install_script: | ||
- apt update --yes && apt install --yes curl python3 make build-essential g++ unzip zip | ||
<< : *BUILD_TEST_TASK_TEMPLATE | ||
|
||
|
||
mac_task: | ||
macos_instance: | ||
image: ghcr.io/cirruslabs/macos-ventura-base:latest | ||
env: | ||
PACT_BROKER_FEATURES: publish_pacts_using_old_api | ||
NVS_HOME: ${HOME}/.nvs | ||
PATH: ${NVS_HOME}:${PATH} | ||
matrix: | ||
- NODE_VERSION: 16 | ||
- NODE_VERSION: 18 | ||
- NODE_VERSION: 20 | ||
install_script: # we need to install rosetta as v1.x of pact-ruby-standalone doesn't support arm64 | ||
- softwareupdate --install-rosetta --agree-to-license | ||
- brew install nvm | ||
- source $(brew --prefix nvm)/nvm.sh | ||
- nvm install $NODE_VERSION | ||
- nvm use $NODE_VERSION | ||
<< : *BUILD_TEST_TASK_TEMPLATE |
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
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