Skip to content

Implements SD-JWT

Implements SD-JWT #640

Workflow file for this run

name: SDK Kotlin CI
on:
workflow_dispatch:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v1
- uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: 11
- uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle.kts') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/versions.properties') }}
- name: hash test inputs
run: |
if ! which sha256sum; then brew install coreutils; fi
sha256sum $(find test-vectors -name '*.json') > test-vector-hashes.txt
- name: Run Gradle Tasks
run: ./gradlew build koverXmlReport
- uses: actions/upload-artifact@v3
with:
name: test-results
path: |
**/build/test-results/test/*Web5TestVectors*.xml
test-vector-hashes.txt
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
flags: ${{ runner.os }}
- name: Publish Tests Results
env:
BUILDKITE_ANALYTICS_TOKEN: ${{ secrets.BUILDKITE_ANALYTICS_TOKEN }}
run: |
declare -a projects=("common" "credentials" "crypto" "dids")
for project in "${projects[@]}"; do
# Find Tests Reports in each project and store them in an array
files=($(find "${project}/build/test-results/test" -name '*.xml'))
# Check if files array is empty
if [ ${#files[@]} -eq 0 ]; then
echo "No Tests files found in ${project} directory!"
exit 1
else
echo "Found ${#files[@]} XML files in ${project} directory, proceeding with upload..."
fi
# Iterate over the files and upload each one
for file in "${files[@]}"; do
echo "Uploading ${file} to BuildKite..."
curl \
-X POST \
--fail-with-body \
-H "Authorization: Token token=\"$BUILDKITE_ANALYTICS_TOKEN\"" \
-F "data=@$file" \
-F "format=junit" \
-F "run_env[CI]=github_actions" \
-F "run_env[key]=$GITHUB_ACTION-$GITHUB_RUN_NUMBER-$GITHUB_RUN_ATTEMPT" \
-F "run_env[number]=$GITHUB_RUN_NUMBER" \
-F "run_env[branch]=$GITHUB_REF" \
-F "run_env[commit_sha]=$GITHUB_SHA" \
-F "run_env[url]=https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" \
https://analytics-api.buildkite.com/v1/uploads
done
done