Update Dockerfile and SDK tests workflow #7
@ -16,11 +16,11 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Checkout laconicd
|
- name: Checkout laconic2d
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
path: "./laconicd/"
|
path: "./laconic2d/"
|
||||||
repository: cerc-io/laconicd
|
repository: cerc-io/laconic2d
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: main
|
ref: main
|
||||||
- name: Environment
|
- name: Environment
|
||||||
@ -31,33 +31,33 @@ jobs:
|
|||||||
dockerd -H $DOCKER_HOST --userland-proxy=false &
|
dockerd -H $DOCKER_HOST --userland-proxy=false &
|
||||||
sleep 5
|
sleep 5
|
||||||
|
|
||||||
- name: Build laconicd container
|
- name: Build laconic2d container
|
||||||
working-directory: laconicd/tests/sdk_tests
|
working-directory: laconic2d/tests/sdk_tests
|
||||||
run: ./build-laconicd-container.sh
|
run: ./build-laconic2d-container.sh
|
||||||
- name: Build laconic-sdk container
|
- name: Build sdk container
|
||||||
run: ./scripts/build-sdk-test-container.sh
|
run: ./scripts/build-sdk-test-container.sh
|
||||||
|
|
||||||
- name: Start containers
|
- name: Start containers
|
||||||
working-directory: laconicd/tests/sdk_tests
|
working-directory: laconic2d/tests/sdk_tests
|
||||||
run: docker compose up -d
|
run: docker compose up -d
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
working-directory: laconicd/tests/sdk_tests
|
working-directory: laconic2d/tests/sdk_tests
|
||||||
run: ./run-tests.sh
|
run: ./run-tests.sh
|
||||||
|
|
||||||
- name: Start containers (auctions enabled)
|
- name: Start containers (auctions enabled)
|
||||||
working-directory: laconicd/tests/sdk_tests
|
working-directory: laconic2d/tests/sdk_tests
|
||||||
env:
|
env:
|
||||||
TEST_AUCTION_ENABLED: true
|
TEST_AUCTION_ENABLED: true
|
||||||
run: docker compose up -d
|
run: docker compose up -d
|
||||||
- name: Run auction tests
|
- name: Run auction tests
|
||||||
working-directory: laconicd/tests/sdk_tests
|
working-directory: laconic2d/tests/sdk_tests
|
||||||
run: ./run-tests.sh test:auctions
|
run: ./run-tests.sh test:auctions
|
||||||
|
|
||||||
- name: Start containers (expiry enabled)
|
- name: Start containers (expiry enabled)
|
||||||
working-directory: laconicd/tests/sdk_tests
|
working-directory: laconic2d/tests/sdk_tests
|
||||||
env:
|
env:
|
||||||
TEST_REGISTRY_EXPIRY: true
|
TEST_REGISTRY_EXPIRY: true
|
||||||
run: docker compose up -d
|
run: docker compose up -d
|
||||||
- name: Run nameservice expiry tests
|
- name: Run nameservice expiry tests
|
||||||
working-directory: laconicd/tests/sdk_tests
|
working-directory: laconic2d/tests/sdk_tests
|
||||||
run: ./run-tests.sh test:nameservice-expiry
|
run: ./run-tests.sh test:nameservice-expiry
|
||||||
|
@ -29,10 +29,10 @@ COPY entrypoint.sh .
|
|||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
CMD node --version
|
CMD node --version
|
||||||
|
|
||||||
WORKDIR /app/laconic-sdk
|
WORKDIR /app/registry-sdk
|
||||||
|
|
||||||
COPY package*.json .
|
COPY package*.json .
|
||||||
RUN yarn install
|
RUN yarn install
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
WORKDIR /app/laconic-sdk
|
WORKDIR /app/registry-sdk
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
docker build -t cerc/laconic-sdk-tester:local -f Dockerfile .
|
docker build -t cerc/registry-sdk-tester:local -f Dockerfile .
|
||||||
|
Loading…
Reference in New Issue
Block a user