Skip to content

Commit

Permalink
Test formatter in dedicated CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota committed Nov 13, 2024
1 parent 978e7f0 commit 6a9d03b
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,35 @@ jobs:

- name: Test
run: |
bats --pretty --timing test
bats --pretty --timing test --filter-tags !format
env:
WINDOWS_BASE_DIR: "/d/a"
TERM: dumb

test_format:
runs-on: ubuntu-24.04
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4

- uses: crystal-lang/install-crystal@v1
with:
crystal: ${{ github.event.inputs.crystal || 'nightly' }}
shards: ${{ github.event.inputs.shards || 'nightly' }}

- name: Setup BATS
uses: mig4/setup-bats@v1
with:
bats-version: 1.9.0

- name: Configure git to not checkout CRLF
run: git config --global --add core.autocrlf false

- name: Test
run: |
bats --pretty --timing test --filter-tags format
env:
WINDOWS_BASE_DIR: "/d/a"
TERM: dumb

0 comments on commit 6a9d03b

Please sign in to comment.