update protobuf and grpc dependencies #668
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
name: CI | |
on: | |
push: | |
pull_request: | |
paths-ignore: | |
- '**/README.md' | |
jobs: | |
haveno-ts-e2e: | |
timeout-minutes: 90 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Java 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
- name: Stop Mono service | |
run: | | |
if pgrep mono > /dev/null; then | |
sudo killall mono; | |
fi | |
- name: Start containers | |
run: docker compose -f "./docker/docker-compose.yml" up -d --build | |
- name: Install node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Install protoc-gen-js | |
curl -Lo protoc-gen-js.zip https://github.com/protocolbuffers/protobuf-javascript/releases/download/v3.21.4/protobuf-javascript-3.21.4-linux-x86_64.zip | |
sudo unzip -q protoc-gen-js.zip bin/protoc-gen-js -d /usr/local | |
sudo chmod a+x /usr/local/bin/protoc-gen-js | |
rm -rf protoc-gen-js.zip | |
protoc-gen-js --version | |
- name: Install protoc-gen-grpc-web | |
run: | | |
curl -Lo protoc-gen-grpc-web https://github.com/grpc/grpc-web/releases/download/1.5.0/protoc-gen-grpc-web-1.5.0-linux-x86_64 | |
sudo mv protoc-gen-grpc-web /usr/local/bin | |
sudo chmod a+x /usr/local/bin/protoc-gen-grpc-web | |
protoc-gen-grpc-web --version | |
- name: Install protoc | |
run: | | |
curl -Lo protoc.zip https://github.com/protocolbuffers/protobuf/releases/download/v29.3/protoc-29.3-linux-x86_64.zip | |
sudo unzip -q protoc.zip bin/protoc -d /usr/local | |
sudo chmod a+x /usr/local/bin/protoc | |
rm -rf protoc.zip | |
protoc --version | |
- name: Copy compiled haveno project from node2 container | |
run: | | |
sudo docker cp node2:/home/haveno/haveno ./../ | |
sudo chmod 777 -R ./../haveno | |
- name: Install dependencies | |
run: npm install | |
- name: Run tests | |
run: npm run test -- --baseCurrencyNetwork=XMR_LOCAL -t "(?:^|\W)CI(?:$|\W)" | |
- name: Collect Docker Logs | |
if: always() | |
uses: jwalton/gh-docker-logs@v2.2.1 | |
- name: Stop containers | |
if: always() | |
run: docker compose -f "./docker/docker-compose.yml" down |