Skip to content

Commit

Permalink
Bring back full CI
Browse files Browse the repository at this point in the history
  • Loading branch information
michelemin committed Dec 10, 2024
1 parent 24db233 commit 3fa4c4a
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 40 deletions.
77 changes: 40 additions & 37 deletions .github/workflows/Checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,48 +32,51 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
runtime/target/
modules/target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Run Integration Tests
run: ./testing/integration.sh

# ubuntu-docker-build-amd64-test:
# runs-on: ubuntu-latest

# steps:
# - uses: actions/checkout@v4

# - uses: actions/cache@v4
# with:
# path: |
# ~/.cargo/bin/
# ~/.cargo/registry/index/
# ~/.cargo/registry/cache/
# ~/.cargo/git/db/
# target/
# key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}


ubuntu-docker-build-amd64-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
runtime/target/
key: ${{ runner.os }}-cargo-amd64-${{ hashFiles('**/Cargo.lock') }}

# - name: Run Docker Build Test (amd64)
# run: cd runtime && docker build -t latest -f plaid/resources/Dockerfile.amd64 .

# ubuntu-docker-build-aarch64-test:
# runs-on: ubuntu-latest

# steps:
# - uses: actions/checkout@v4

# - uses: actions/cache@v4
# with:
# path: |
# ~/.cargo/bin/
# ~/.cargo/registry/index/
# ~/.cargo/registry/cache/
# ~/.cargo/git/db/
# target/
# key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Run Docker Build Test (amd64)
run: cd runtime && docker build -t latest -f plaid/resources/Dockerfile.amd64 .


ubuntu-docker-build-aarch64-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
runtime/target/
key: ${{ runner.os }}-cargo-aarch64-${{ hashFiles('**/Cargo.lock') }}

# - name: Run Docker Build Test (aarch64)
# run: cd runtime && docker build -t latest -f plaid/resources/Dockerfile.aarch64 .
- name: Run Docker Build Test (aarch64)
run: cd runtime && docker build -t latest -f plaid/resources/Dockerfile.aarch64 .


2 changes: 1 addition & 1 deletion modules/tests/test_logback/harness/harness.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ sleep 20

# Call the webhook
curl http://$PLAID_LOCATION/webhook/$URL
sleep 1
sleep 3

kill $RH_PID 2>&1 > /dev/null

Expand Down
4 changes: 2 additions & 2 deletions testing/integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ echo "Copying Compiled Test Modules to compiled_modules"
mkdir -p compiled_modules
cp -r modules/target/wasm32-unknown-unknown/release/test_*.wasm compiled_modules/

echo "Starting Plaid In The Background and waiting 10 seconds for it to boot"
echo "Starting Plaid In The Background and waiting for it to boot"
cd runtime
RUST_LOG=plaid=debug cargo run --bin=plaid --release -- --config plaid/resources/plaid.toml --secrets plaid/resources/secrets.example.json &
PLAID_PID=$!
cd ..
sleep 10
sleep 20

# Set the variables the test harnesses will need
export PLAID_LOCATION="localhost:4554"
Expand Down

0 comments on commit 3fa4c4a

Please sign in to comment.