Merge pull request #49 from fablo-io/update-publish-docker-action #127
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 ] | |
jobs: | |
Test-Actions: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
- name: Build fablo-rest | |
run: npm install && npm run lint && npm run build && ls -lh ./dist | |
- name: Run unit tests | |
run: npm run test | |
- name: Build fablo-rest Docker image | |
run: ./docker-build.sh | |
- name: Start test network | |
run: (ls -lh && cd ./test-network && ./fablo up fablo-config-tls.json) | |
- name: Start fablo-rest as docker container and run e2e tests | |
run: ./e2e/run-e2e-tests-on-dist.sh | |
- uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: server.log | |
path: server.log |