Skip to content

chore: move update-version to ci #1132

chore: move update-version to ci

chore: move update-version to ci #1132

Workflow file for this run

name: ci
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Setup
run: bun install
- run: bun test
pretty:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Needed to get tags
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Setup
run: bun install
- name: Format
run: bun fmt:ci
- name: typos-action
uses: crate-ci/[email protected]
- name: Lint
shell: bash
run: |
bun lint
# check for version changes
./update-version.sh
if [[ -n "$(git status --porcelain)" ]]; then
echo "Version mismatch. Please run ./update-version.sh"
git diff
exit 1
else
echo "No changes detected."
fi