Skip to content

feat: bump to node 20 AI-1061 #137

feat: bump to node 20 AI-1061

feat: bump to node 20 AI-1061 #137

name: 'verify-transpiled-code'
on:
pull_request:
push:
branches:
- main
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- 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