This repository has been archived by the owner on Oct 13, 2023. It is now read-only.
Adding disclaimer #487
Workflow file for this run
This file contains 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: Test | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [main] | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
if: env.GIT_DIFF | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: technote-space/get-diff-action@v6.0.1 | ||
id: git_diff | ||
with: | ||
PATTERNS: | | ||
packages/**/**.js | ||
packages/**/**.ts | ||
packages/**/package.json | ||
packages/**/yarn.lock | ||
package.json | ||
yarn.lock | ||
- name: Install modules | ||
run: npm install | ||
- name: Build and link packages | ||
run: npm run build | ||
- name: Start Docker local node | ||
run: >- | ||
cd packages/evmosjs/src/tests && | ||
docker build -t evmosjs-test . && | ||
docker create -p 1317:1317 -p 8545:8545 --name evmos -t evmosjs-test && | ||
docker start evmos && | ||
cd ../../../.. | ||
- name: Wait for Docker to spin up | ||
run: sleep 30 | ||
- name: Run tests | ||
run: npm run test |