Skip to content

Commit

Permalink
CI: Add test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
luislavena committed Jul 20, 2024
1 parent a2196c2 commit 043181a
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Test

on:
push:
branches:
- main
paths:
- ".github/workflows/**"
- "shard.*"
- "spec/**"
- "src/**"

pull_request:
branches:
- main
paths:
- ".github/workflows/**"
- "shard.*"
- "spec/**"
- "src/**"

jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: crystal-lang/install-crystal@v1
- run: crystal tool format --check

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: crystal-lang/install-crystal@v1
- run: shards install
- run: crystal spec

0 comments on commit 043181a

Please sign in to comment.