Skip to content

chore: using docker

chore: using docker #3

Workflow file for this run

name: Docker Test
on:
push:
branches-ignore:
- main
# pull_request:
# branches:
# - '*'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Change directory
run: cd packages/contracts
- name: Build Docker image
run: docker build -t blockful/external-resolver-contracts .
- name: Start Docker container
run: docker run -d --name external-resolver-contracts -p 8545:8545 blockful/external-resolver-contracts
- name: Wait for container to be healthy
run: docker wait external-resolver-contracts
- name: Run tests
run: yarn test
- name: Stop Docker container
run: docker stop external-resolver-contracts