Add notice about the relocation of docs #72
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: End-to-end Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
without-auditor: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: | |
- 14.x | |
- 16.x | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: npm | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.CR_PAT }} | |
- name: Start up a Local Scalar DL Network | |
working-directory: .github | |
run: | | |
git init | |
git pull https://${{ github.repository_owner }}:${{ secrets.CR_PAT }}@github.com/scalar-labs/scalardl-samples.git 3.5 | |
docker-compose -f docker-compose.yml -f expose-cassandra-port.yml up -d cassandra | |
echo -n "Wait for C* " | |
until docker exec scalardl-samples-cassandra-1 cqlsh 2> /dev/null ; do | |
sleep 0.5 | |
echo -n "#" | |
done | |
echo "" | |
docker run --rm --network scalar-network -v "${PWD}/scalardb-schema-loader.properties":/scalardb.properties -v "${PWD}/schema.json":/schema.json ghcr.io/scalar-labs/scalardb-schema-loader:3.6.0 -c /scalardb.properties -f /schema.json | |
docker-compose -f docker-compose.yml -f expose-cassandra-port.yml up scalardl-ledger-schema-loader-cassandra | |
docker-compose -f docker-compose.yml -f expose-cassandra-port.yml up -d scalar-ledger ledger-envoy | |
sleep 5 | |
- name: Update NPM to the latest stable version | |
run: npm install -g npm@latest | |
- name: NPM Install | |
run: npm install | |
- name: NPM Test | |
run: npm test | |
with-auditor: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: | |
- 14.x | |
- 16.x | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: npm | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.CR_PAT }} | |
- name: Start up a Local Scalar DL Network with Auditor | |
working-directory: .github | |
run: | | |
git init | |
git pull https://${{ github.repository_owner }}:${{ secrets.CR_PAT }}@github.com/scalar-labs/scalardl-samples.git 3.5 | |
docker-compose -f docker-compose.yml -f docker-compose-auditor.yml up -d cassandra | |
echo -n "Wait for C* " | |
until docker exec scalardl-samples-cassandra-1 cqlsh 2> /dev/null ; do | |
sleep 0.5 | |
echo -n "#" | |
done | |
echo "" | |
docker-compose -f docker-compose.yml -f docker-compose-auditor.yml up scalardl-ledger-schema-loader-cassandra | |
docker-compose -f docker-compose.yml -f docker-compose-auditor.yml up scalardl-auditor-schema-loader-cassandra | |
docker-compose -f docker-compose.yml -f docker-compose-auditor.yml up -d scalar-ledger | |
docker-compose -f docker-compose.yml -f docker-compose-auditor.yml up -d scalar-auditor | |
docker-compose -f docker-compose.yml -f docker-compose-auditor.yml up -d ledger-envoy | |
docker-compose -f docker-compose.yml -f docker-compose-auditor.yml up -d auditor-envoy | |
docker-compose -f docker-compose.yml -f docker-compose-auditor.yml up -d scalar-ledger-as-client | |
docker-compose -f docker-compose.yml -f docker-compose-auditor.yml up -d scalar-audior-as-client | |
sleep 5 | |
docker restart scalardl-samples-scalar-ledger-1 # just in case | |
docker restart scalardl-samples-scalar-auditor-1 # just in case | |
sleep 5 | |
- name: Update NPM to the latest stable version | |
run: npm install -g npm@latest | |
- name: NPM Install | |
run: npm install | |
- name: NPM Test | |
run: npm run test-auditor |