Introduce stdlib specs #214
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: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: crystal-lang/install-crystal@v1 | |
| with: | |
| crystal: 1.16.3 | |
| - name: Cache shards | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/shards | |
| key: ${{ runner.os }}-shards-${{ hashFiles('shard.yml') }} | |
| restore-keys: ${{ runner.os }}-shards- | |
| - name: Install system dependencies (Linux) | |
| if: runner.os == 'Linux' | |
| run: sudo apt update && sudo apt install -y libreadline-dev | |
| - name: Install system dependencies (macOS) | |
| if: runner.os == 'macOS' | |
| run: brew install readline | |
| - name: Install shards | |
| run: shards update | |
| - name: Run tests | |
| run: crystal spec --order=random | |
| - name: Run Linter | |
| run: bin/ameba | |
| - name: Run Formatter | |
| run: crystal tool format --check |