Skip to content

feat: PAN-1832 transfer tests #8

feat: PAN-1832 transfer tests

feat: PAN-1832 transfer tests #8

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
env:
PANTOS_ETHEREUM_CONTRACTS: ${{ github.workspace }}/ethereum-contracts
PANTOS_SERVICE_NODE: ${{ github.workspace }}/servicenode
PANTOS_VALIDATOR_NODE: ${{ github.workspace }}/validatornode
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: ${{ env.PANTOS_ETHEREUM_CONTRACTS }}
sparse-checkout: |
docker-compose.yml
Makefile
- uses: actions/checkout@v4
with:
repository: pantos-io/servicenode
path: ${{ env.PANTOS_SERVICE_NODE }}
sparse-checkout: |
docker-compose.yml
docker-compose.override.yml
Makefile
- uses: actions/checkout@v4
with:
repository: pantos-io/validatornode
path: ${{ env.PANTOS_VALIDATOR_NODE }}
sparse-checkout: |
docker-compose.yml
docker-compose.override.yml
Makefile
- name: Create local signer_key
run: |
ssh-keygen -t ed25519 -f signer_key.pem -N ''
chmod 777 signer_key.pem
working-directory: servicenode
- 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@v4
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 Tests
run: |
make test
- name: Dump service node logs
if: always()
run: |
make docker-logs || true
working-directory: ${{ env.PANTOS_SERVICE_NODE }}
- name: Dump validator node logs
if: always()
run: |
make docker-logs || true
working-directory: ${{ env.PANTOS_VALIDATOR_NODE }}
- name: Dump ethereum contract logs
if: always()
run: |
make docker-logs || true
working-directory: ${{ env.PANTOS_ETHEREUM_CONTRACTS }}