Skip to content

ci(github): commit parity check based on similarity #7

ci(github): commit parity check based on similarity

ci(github): commit parity check based on similarity #7

---
name: PR - Commit Parity
'on':
pull_request:
branches:
- main
- dev
- petermetz/**
push:
branches:
- main
- dev
env:
NODEJS_VERSION: v18.18.2
jobs:
pr-commit-parity:
name: PR and Commit messages Parity
runs-on: ubuntu-22.04
env:
ACCEPTABLE_SIMILARITY_RATIO: 0.9
steps:
- uses: actions/[email protected]
- name: Install Indy SDK
run: >
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CE7709D068DB5E88 \
&& sudo add-apt-repository "deb https://repo.sovrin.org/sdk/deb bionic stable" \
&& sudo apt-get update \
&& sudo apt-get install -y \
libindy \
libnullpay \
libvcx \
indy-cli \
&& sudo rm -f /etc/apt/sources.list.d/sovrin.list*
- name: Set up NodeJS ${{ env.NODEJS_VERSION }}
uses: actions/[email protected]
with:
node-version: ${{ env.NODEJS_VERSION }}
- name: Execute pr-commit-parity script
run: node tools/pr-commit-parity.js ${{ github.event.pull_request.url }} $ACCEPTABLE_SIMILARITY_RATIO