-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependency and runtime versions
Signed-off-by: Mark S. Lewis <[email protected]>
- Loading branch information
1 parent
dfe8148
commit 9e7119b
Showing
10 changed files
with
282 additions
and
601 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,4 +1,3 @@ | ||
|
||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
@@ -9,37 +8,33 @@ on: | |
workflow_dispatch: {} | ||
|
||
jobs: | ||
|
||
# Lint, Compile and Core Function Tests | ||
build: | ||
name: Build and test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Use Go 1.18 | ||
uses: actions/setup-go@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.18 | ||
go-version: stable | ||
- name: Run Go formatters and linters | ||
run: make lint | ||
- uses: actions/setup-java@v3 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '11' | ||
- name: Use Node.js 20 | ||
uses: actions/setup-node@v2 | ||
distribution: temurin | ||
java-version: 17 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
node-version: 22 | ||
- name: Install Fabric dependencies | ||
run: | | ||
sudo mkdir -p /opt/fabric | ||
pushd /opt/fabric | ||
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/main/scripts/install-fabric.sh | bash -s -- binary --fabric-version 2.5.0-alpha3 --ca-version 1.5.6-beta3 | ||
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/main/scripts/install-fabric.sh | bash -s -- binary --fabric-version 2.5.10 --ca-version 1.5.13 | ||
popd | ||
cd builders/java | ||
sudo mvn -q dependency:copy-dependencies -DoutputDirectory=/opt/fabric-chaincode-java/lib | ||
npm install -g [email protected].1 | ||
npm install -g [email protected].7 | ||
- name: Run Go formatters and linters | ||
run: make lint | ||
- name: Run Go unit tests | ||
|
@@ -58,34 +53,31 @@ jobs: | |
needs: [build] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Setup Fabric | ||
run: | | ||
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/main/scripts/install-fabric.sh | bash -s -- binary | ||
# set the path and cfg env var for the rest of the step | ||
echo "FABRIC_CFG_PATH=$GITHUB_WORKSPACE/config" >> $GITHUB_ENV | ||
echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH | ||
- name: Build Docker image | ||
id: dockerbuild | ||
uses: docker/build-push-action@v3 | ||
uses: docker/build-push-action@v6 | ||
with: | ||
context: . | ||
file: Dockerfile2 | ||
platforms: linux/amd64 | ||
push: false | ||
load: true | ||
tags: dev-microfab | ||
|
||
|
||
- name: Run against image | ||
run: | | ||
docker images | ||
./scripts/test-container.sh | ||
env: | ||
MICROFAB_IMAGE: dev-microfab | ||
|
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
Oops, something went wrong.