chore: adjust action paths. So that all paths are relative to the root #1301
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: CI | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
tests: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v2 | |
- name: Free Diskspace | |
uses: ./.github/actions/free_disk_space | |
- name: Setup Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 18 | |
- name: Lint and test | |
working-directory: ./cardano-rosetta-server | |
run: | | |
yarn install --frozen-lockfile --loglevel=error | |
yarn lint | |
yarn test | |
env: | |
PORT: 8080 | |
LOGGER_LEVEL: debug | |
LOGGER_ENABLED: true | |
BIND_ADDRESS: 127.0.0.1 | |
DB_CONNECTION_STRING: postgresql://postgres:notForProduction!@127.0.0.1:5432/mainnet | |
TOPOLOGY_FILE_PATH: test/e2e/utils/topology-test.json | |
# PATHs should be strings and must exist | |
CARDANO_CLI_PATH: /tmp | |
CARDANO_NODE_PATH: /tmp | |
CARDANO_NODE_SOCKET_PATH: /tmp | |
GENESIS_SHELLEY_PATH: test/e2e/utils/mainnet-genesis.json | |
PAGE_SIZE: 5 | |
DEFAULT_RELATIVE_TTL: 1000 | |
- name: Build Cardano Rosetta | |
uses: ./.github/actions/build_cardano_rosetta | |
with: | |
build-context: ${{ github.workspace }}/cardano-rosetta | |
tag: ${{ github.sha }} | |
- name: Postman Tests | |
uses: ./.github/actions/postman_tests_cardano_rosetta | |
with: | |
tag: ${{ github.sha }} |