message: Check if this speeds up deps install
diff: @@ -15,9 +15,7 @@ jobs:
  node-version: "16.15.0"
  cache: 'npm'
  - name: Install dependencies
  - run: |
  - npm i -g npm@latest
  - npm ci
  + run: npm ci
  - name: Run lint script
  run: npm run lint
  @@ -30,9 +28,7 @@ jobs:
  node-version: "16.15.0"
  cache: 'npm'
  - name: Install dependencies
  - run: |
  - npm i -g npm@latest
  - npm ci
  + run: npm ci
  - name: Run build script
  run: npm run build
  @@ -73,9 +69,7 @@ jobs:
  node-version: "16.15.0"
  cache: 'npm'
  - name: Install dependencies
  - run: |
  - npm i -g npm@latest
  - npm ci
  + run: npm ci
  - name: Run data tests
  run: npm run test --prefix ./data/postgres
  env:
  @@ -89,32 +83,26 @@ jobs:
  test-typescript-app: # Build and test the typescript_app project
  runs-on: ubuntu-latest
  - defaults:
  - run:
  - working-directory: ./emissions-data
  steps:
  - uses: actions/checkout@v3
  - uses: actions/setup-node@v3
  with:
  node-version: "16.15.0"
  cache: 'npm'
  + - name: Install dependencies
  + run: npm ci
  - name: Download Fabric binaries
  run: |
  sudo chmod +x /usr/local/bin/docker-compose
  - cd docker-compose-setup/
  + cd ./emissions-data/docker-compose-setup/
  ./bootstrap.sh 2.4.2 1.5.2 -d -s
  - - name: Install dependencies
  - run: |
  - cd ../
  - npm i -g npm@latest
  - npm ci
  - name: Start local Hardhat network # Start local Hardhat network needed for running net emissions token network
  run: |
  - cd ../net-emissions-token-network/
  + cd ./net-emissions-token-network/
  echo "n" | npx hardhat node &
  - name: Build emissions-data project # Add required hostnames to /etc/hosts and runs start script
  run: |
  - cd docker-compose-setup/
  + cd ./emissions-data/docker-compose-setup/
  echo "127.0.0.1 auditor1.carbonAccounting.com
  127.0.0.1 auditor2.carbonAccounting.com
  127.0.0.1 peer1.auditor1.carbonAccounting.com
  @@ -123,7 +111,7 @@ jobs:
  ./startDev.sh &
  - name: Run tests # Wait for the blockchain network to start up and then run the tests
  run: |
  - cd typescript_app/
  + cd ./emissions-data/typescript_app/
  while ! timeout 1 bash -c "echo > /dev/tcp/localhost/8080" > /dev/null 2>&1; do sleep 10; done
  npm run test:setup
  npm run test:ci
  