Add tests and set up a CI workflow #3
Workflow file for this run
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: Crystal CI | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| crystal: [latest, nightly] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Install Crystal | |
| uses: oprypin/install-crystal@v1 | |
| with: | |
| crystal: ${{ matrix.crystal }} | |
| - name: Download source | |
| uses: actions/checkout@v4 | |
| - name: Check code formatting | |
| run: crystal tool format --check | |
| - name: Install dependencies | |
| run: shards install | |
| - name: Lint with Ameba | |
| run: bin/ameba |