Skip to content

Commit

Permalink
Refactor workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gopuman committed Nov 8, 2024
1 parent 0d68330 commit de3ab04
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,18 @@ jobs:
env:
ResDB_Home: ${{ github.workspace }}/incubator-resilientdb

- name: Set ResDB_Home Environment Variable
run: echo "ResDB_Home=${{ github.workspace }}/incubator-resilientdb" >> $GITHUB_ENV
- name: Set ResDB_Home and Locate Config Path
run: |
export ResDB_Home="$HOME/incubator-resilientdb"
echo "ResDB_Home=$ResDB_Home" >> $GITHUB_ENV
# Locate the actual path of service.config
CONFIG_PATH=$(find "$ResDB_Home" -name "service.config" | head -n 1)
if [ -z "$CONFIG_PATH" ]; then
echo "Error: service.config not found"
exit 1
fi
echo "CONFIG_PATH=$CONFIG_PATH" >> $GITHUB_ENV
- name: Install ResContract CLI
run: |
Expand All @@ -63,6 +73,7 @@ jobs:
- name: Run CLI Tests
env:
ResDB_Home: ${{ env.ResDB_Home }}
CONFIG_PATH: ${{ env.CONFIG_PATH }}
run: |
echo "Testing create command"
rescontract create --config $ResDB_Home/service/tools/config/interface/service.config
rescontract create --config "$CONFIG_PATH"

0 comments on commit de3ab04

Please sign in to comment.