Skip to content

feat: PAN-1832 transfer tests #1

feat: PAN-1832 transfer tests

feat: PAN-1832 transfer tests #1

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
- uses: actions/checkout@v4
- uses: pantos-io/ci-workflows/.github/actions/install-python-deps@v1
- uses: actions/checkout@v4
with:
repository: pantos-io/ethereum-contracts
path: ethereum-contracts
sparse-checkout: |
docker-compose*
Makefile
- uses: actions/checkout@v4
with:
repository: pantos-io/servicenode
path: service-node
sparse-checkout: |
docker-compose*
Makefile
- uses: actions/checkout@v4
with:
repository: pantos-io/validatornode
path: validator-node
sparse-checkout: |
docker-compose*
Makefile
- name: Create local signer_key
run: |
ssh-keygen -t ed25519 -f signer_key.pem -N ''
chmod 777 signer_key.pem
working-directory: service-node
- name: Set up QEMU
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0
id: buildx
- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-v1.0-e2e-test-${{ github.ref_name }}
restore-keys: |
${{ runner.os }}-buildx-v1.0-test-
- name: Check docker config and disable live reload
run: |
cat /etc/docker/daemon.json
echo '{ "live-restore": false }' | sudo tee /etc/docker/daemon.json
sudo systemctl reload docker
make check-swarm-init
- name: Run Ethereum Contracts
run: |
env:
DOCKER_TAG: "1.1.2"
- name: Dump service node logs
if: always()
run: |
docker compose logs || true
- name: Dump ethereum contract logs
if: always()
run: |
docker compose logs || true
working-directory: ethereum-contracts
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache