Merge pull request #49 from webmatze/feat/mentions #48
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| name: spec & format (${{ matrix.os }}) | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install Crystal | |
| uses: crystal-lang/install-crystal@v1 | |
| with: | |
| crystal: latest | |
| - name: Install dependencies | |
| run: shards install | |
| - name: Check formatting | |
| run: crystal tool format --check | |
| - name: Run specs | |
| run: crystal spec | |
| - name: Build binary | |
| run: mkdir -p bin && crystal build src/smith.cr -o bin/smith |