Skip to content

Commit

Permalink
Merge branch 'neo' into lipen/ets-fix-quoting
Browse files Browse the repository at this point in the history
  • Loading branch information
Lipen authored Jul 19, 2024
2 parents e8ef716 + d0438be commit 3b515d8
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,38 @@ jobs:

- name: Set up ArkAnalyzer
run: |
git clone --depth=1 --branch=lipen/json-printer https://gitee.com/Lipenx/arkanalyzer
cd arkanalyzer
REPO_URL="https://gitee.com/openharmony-sig/arkanalyzer.git"
DEST_DIR="arkanalyzer"
MAX_RETRIES=10
RETRY_DELAY=5 # Delay between retries in seconds
for ((i=1; i<=MAX_RETRIES; i++)); do
git clone --depth=1 $REPO_URL $DEST_DIR && break
echo "Clone failed, retrying in $RETRY_DELAY seconds..."
sleep "$RETRY_DELAY"
done
if [[ $i -gt $MAX_RETRIES ]]; then
echo "Failed to clone the repository after $MAX_RETRIES attempts."
exit 1
else
echo "Repository cloned successfully."
fi
cd $DEST_DIR
# checkout master on 2024-07-17
rev=a9d9fd6070fce5896d8e760ed7fd175b62b16605
git fetch --depth=1 origin $rev
git switch --detach $rev
npm install
npm run build
echo "ARKANALYZER_DIR=$DEST_DIR" >> $GITHUB_ENV
- name: Generate test resources for jacodb-ets module
run: ./gradlew :jacodb-ets:generateTestResources
env:
ARKANALYZER_DIR: arkanalyzer

- name: Build and run tests in jacodb-ets module
run: ./gradlew --scan :jacodb-ets:test

0 comments on commit 3b515d8

Please sign in to comment.