chore(ci): AB-2033 - backward compatibility test for Java SDK-encrypted files of released versions #1421
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint and similar things for test | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
push: | |
branches: | |
- main | |
jobs: | |
scriptcheck: | |
permissions: | |
contents: read | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
persist-credentials: false | |
- name: 🦪 ✔ 🧼🧼🧼 | |
run: >- | |
docker run --rm -v "$PWD:/mnt" --workdir "/mnt" "koalaman/shellcheck:v0.8.0" --color=always \ | |
$(find . -type f -exec grep -m1 -l -E '^#!.*sh.*' {} \; | grep -v '/.git/') | |
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 | |
with: | |
cache: pip | |
python-version: '3.13' | |
- name: 🧽 🐍 | |
run: |- | |
pip install -r requirements.txt | |
pip install black pyright ruff | |
ruff check | |
black --check . | |
working-directory: xtest | |
- name: Run Pyright and summarize errors if any | |
run: | | |
set +e | |
OUTPUT=$(pyright 2>&1) | |
STATUS=$? | |
if [ $STATUS -ne 0 ]; then | |
echo -e "## type check error\n\`\`\`\n$OUTPUT\n\`\`\`" >> $GITHUB_STEP_SUMMARY | |
elif [[ -z "$OUTPUT" || "$OUTPUT" == '0 errors, 0 warnings, 0 informations'* ]]; then | |
echo "No type errors found." | |
else | |
echo "Type check passed with warnings.\n\n$OUTPUT" | |
fi |