feat: sdk to sdk sdjwt holder verification #1263
Workflow file for this run
This file contains 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: Continuous integration | |
concurrency: | |
group: ${{ github.head_ref }}${{ github.ref }}-wallet-sdk | |
cancel-in-progress: true | |
on: | |
pull_request: | |
branches: | |
- 'main' | |
- 'release/*' | |
push: | |
branches: | |
- 'main' | |
- 'release/*' | |
jobs: | |
build-and-test: | |
name: Build and test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "lts/*" | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: Install wasm-pack | |
run: | | |
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | |
- name: Install | |
run: npm install && npm i @rollup/rollup-linux-x64-gnu | |
- name: Eslint | |
run: npx eslint . | |
- name: Build | |
run: npm run build | |
- name: Run coverage test | |
run: npm run coverage | |
- name: Npm audit | |
uses: oke-py/[email protected] | |
with: | |
audit_level: moderate | |
create_issues: false | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
production_flag: true | |
- name: Coveralls | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
uses: coverallsapp/github-action@v2 | |
with: | |
file: "coverage/lcov.info" | |
- name: Jest Coverage Comment | |
uses: MishaKav/[email protected] | |
with: | |
coverage-summary-path: coverage/coverage-summary.json | |
junitxml-path: coverage/junit.xml | |
junitxml-title: JUnit | |
- name: Publish lcov report | |
uses: actions/upload-artifact@v3 | |
with: | |
name: lcov-report.zip | |
path: coverage/lcov-report | |
if-no-files-found: error |