chore: bump version #1022
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: Unit and integration Tests | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '16.x' | |
- uses: nevermined-io/[email protected] | |
with: | |
token: ${{ secrets.API_TOKEN_GITHUB }} | |
node: 'false' | |
marketplace: 'false' | |
- name: Install dependencies | |
run: | | |
yarn | |
- name: Check lint | |
run: yarn lint | |
- name: Check formatting | |
run: yarn format:check | |
- name: Compile | |
run: yarn build | |
- name: Running elasticsearch | |
run: | | |
docker run \ | |
-p 9200:9200 \ | |
-p 9300:9300 \ | |
-e "discovery.type=single-node" \ | |
-e "bootstrap.memory_lock=true" \ | |
-e "ELASTIC_PASSWORD=password"\ | |
--name es01 \ | |
-e "xpack.security.enabled=false" \ | |
-d docker.elastic.co/elasticsearch/elasticsearch:8.8.1 | |
- name: Wait for Elasticsearch | |
run: | | |
until curl --output /dev/null --silent --head --fail http://localhost:9200; do | |
echo "Waiting for Elasticsearch..." | |
sleep 5 | |
done | |
- name: Run tests | |
run: | | |
yarn setup:dev | |
# HDWalletProvider keeps jest from exiting | |
yarn test:cov --forceExit |