refactor(tests): remove remaining explicit any from test files #70
Workflow file for this run
This file contains hidden or 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: Docker Build | |
| on: | |
| pull_request: | |
| paths: | |
| - Dockerfile | |
| - package.json | |
| - package-lock.json | |
| - src/** | |
| jobs: | |
| docker-build: | |
| name: Build Docker image | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build image | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| push: false | |
| # Without `load`, buildx leaves the image in its own cache and never | |
| # hands it to the Docker daemon, so the verify step below fails with | |
| # "Unable to find image 'trust-link-backend:ci' locally". | |
| load: true | |
| tags: trust-link-backend:ci | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| - name: Verify image starts and answers health check | |
| run: | | |
| docker run -d \ | |
| --name trustlink-ci \ | |
| -p 3000:3000 \ | |
| -e NODE_ENV=test \ | |
| -e DATABASE_URL=postgresql://trustlink:trustlink@localhost:5432/trustlink_test \ | |
| -e SEP10_JWT_SECRET=test-jwt-secret-must-be-at-least-32-chars \ | |
| -e SYSTEM_SIGNER_SECRET=SAIJDXETR5B7YFPH7SUOISWVBHHSI46JLYFDCWDMEV2L46XAHASPP35C \ | |
| -e CONTRACT_ID=CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABSC4 \ | |
| -e ADMIN_ADDRESS=GBBD47IF6LWK7P7MDEVSCWR7DPUWV3NY3DTQEVFL4NAT4AQH3ZLLFLA5 \ | |
| -e STELLAR_NETWORK=TESTNET \ | |
| trust-link-backend:ci | |
| echo "Waiting for container to start..." | |
| sleep 10 | |
| docker inspect --format='{{.State.Status}}' trustlink-ci | |
| docker rm -f trustlink-ci |