Skip to content

fix(jira-linked): add Jenkins bot exception #126

fix(jira-linked): add Jenkins bot exception

fix(jira-linked): add Jenkins bot exception #126

name: 'verify-transpiled-code'
on:
pull_request:
push:
branches:
- main
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
yarn install
mv dist/ source-dist
yarn run all
- name: Run integrity check
run: |
#!/bin/bash
hash_function="sha256sum"
for file in dist/*
do
source_file=${file/dist/source-dist} # Replaces "dist" for "source-dist" in ${file}
hash_source=$(${hash_function} "${source_file}" | awk '{print $1;}')
hash_target=$(${hash_function} "${file}" | awk '{print $1;}')
if [ ! "${hash_source}" == "${hash_target}" ]; then
echo "There is a mismatch in ${file}. Either you forgot to generate it and push it or it wasn't generated correctly."
exit 1
fi
done