Skip to content

fix: add validation to gradient matrices #82

fix: add validation to gradient matrices

fix: add validation to gradient matrices #82

Workflow file for this run

name: Make checks
on:
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
validate_code_style_and_workability:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Lint
run: bun run check:lint
- name: Check unused
run: bun run check:unused
- name: Check format
run: bun run check:format
- name: Test
run: bun run test
- name: Make sure package is buildable and types are correct
run: bun run build
- name: Make sure new schema is generated
run: |
bun run generate:types
echo ---
git status --porcelain
echo ---
if [[ -n "$(git status --porcelain)" ]]; then
echo "There are changes in the generated types. Please run `bun run generate:types` and commit changed files."
# Exit with an error code to stop the job
exit 1
else
echo "No changes in generate types, everything is ok."
fi