Skip to content

feat: MOBILE-389 - add multi-chain support in wallet connection api (… #41

feat: MOBILE-389 - add multi-chain support in wallet connection api (…

feat: MOBILE-389 - add multi-chain support in wallet connection api (… #41

Workflow file for this run

# NEWM Server CI - ktlint and tests
name: NEWM Server CI
on:
push:
branches:
- master
pull_request:
env:
KTLINT_VERSION: "1.8.0"
KTLINT_SHA256: "a3fd620207d5c40da6ca789b95e7f823c54e854b7fade7f613e91096a3706d75"
jobs:
ktlint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'
- name: Download and verify ktlint
run: |
# Download ktlint binary and signature
curl -sSLO https://github.com/pinterest/ktlint/releases/download/${KTLINT_VERSION}/ktlint
curl -sSLO https://github.com/pinterest/ktlint/releases/download/${KTLINT_VERSION}/ktlint.asc
# Verify SHA256 hash
echo "${KTLINT_SHA256} ktlint" | sha256sum -c -
if [ $? -ne 0 ]; then
echo "SHA256 verification failed!"
exit 1
fi
echo "SHA256 verification passed"
# Import ktlint PGP key
gpg --keyserver keyserver.ubuntu.com --recv adbc987d1a7b91db6b0aaa81995efbf4a3d20beb
gpg --verify ktlint.asc
if [ $? -ne 0 ]; then
echo "PGP signature verification failed!"
exit 1
fi
echo "PGP signature verification passed"
# Install ktlint
chmod a+x ktlint
sudo mv ktlint /usr/local/bin/
- name: Run ktlint
run: |
ktlint --reporter=checkstyle,output=build/ktlint-report.xml '**/*.kt*' '!**/generated/**'
continue-on-error: true
- uses: yutailang0119/action-ktlint@v5
with:
report-path: build/*.xml
continue-on-error: false
build:
name: Test
needs: ktlint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'
- name: Run tests
run: ./gradlew test -PisGithubActions