mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2024-10-01 01:35:42 -04:00
68 lines
1.8 KiB
YAML
68 lines
1.8 KiB
YAML
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: sudo killall mono
|
|
|
|
- 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: 16
|
|
|
|
- name: Install protoc-gen-grpc-web
|
|
run: |
|
|
curl -Lo protoc-gen-grpc-web https://github.com/grpc/grpc-web/releases/download/1.4.2/protoc-gen-grpc-web-1.4.2-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/v3.20.1/protoc-3.20.1-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
|