Reorganize input variables and namings.

pull/6697/head
Gokhan Gulbiz 2023-02-07 10:14:14 +03:00
parent a5e614a2e6
commit 6c16e8b371
No known key found for this signature in database
GPG Key ID: 608EF06B6BD1B45B
1 changed files with 10 additions and 16 deletions

View File

@ -1,18 +1,12 @@
name: Run sqlancer on release branch name: Run sqlancer tests
on: on:
push:
branches: "**"
workflow_dispatch: workflow_dispatch:
inputs: inputs:
citus_release: citus_release:
default: release-11.1 default: release-11.1
timeout: description: 'Branch, tag or SHA to run tests against'
default: 1m required: true
env:
timeout: ${{ inputs.timeout }}
citus_release: ${{ inputs.citus_release }}
jobs: jobs:
@ -38,17 +32,17 @@ jobs:
run: | run: |
make install-all -sj$(cat /proc/cpuinfo | grep "core id" | wc -l) 2>&1 | tee -a output.log make install-all -sj$(cat /proc/cpuinfo | grep "core id" | wc -l) 2>&1 | tee -a output.log
- name: Setup Maven
uses: s4u/setup-maven-action@v1.6.0
with:
java-version: 11
- name: Checkout Sqlancer - name: Checkout Sqlancer
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
ref: master ref: master
repository: sqlancer/sqlancer repository: sqlancer/sqlancer
- name: Setup Maven
uses: s4u/setup-maven-action@v1.6.0
with:
java-version: 11
- name: Build SQLancer - name: Build SQLancer
run: mvn -B package -DskipTests=true run: mvn -B package -DskipTests=true
@ -109,13 +103,13 @@ jobs:
then then
errors_table["$error"]="$file " errors_table["$error"]="$file "
else else
errors_table["$error"]="${errors_table[$error]} $file " errors_table["$error"]=", ${errors_table[$error]} $file "
fi fi
done < <(grep -noR "ERROR:.*" logs/citus) done < <(grep -noR "ERROR:.*" logs/citus)
for key in "${!errors_table[@]}"; do for key in "${!errors_table[@]}"; do
echo "### $key" >> $GITHUB_STEP_SUMMARY echo "### $key" >> $GITHUB_STEP_SUMMARY
echo "${errors_table[$key]}" >> $GITHUB_STEP_SUMMARY echo "in ${errors_table[$key]}" >> $GITHUB_STEP_SUMMARY
done done
shell: bash shell: bash