Crystal CI #125
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"] | |
| paths: | |
| - "src/**" | |
| - ".github/workflows/Crystal CI.yml" | |
| pull_request: | |
| branches: ["main"] | |
| paths: | |
| - "src/**" | |
| - ".github/workflows/Crystal CI.yml" | |
| schedule: | |
| - cron: "0 0 * * 1" # Every Monday 8 AM CST | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| crystal: [latest, nightly] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Download source | |
| uses: actions/checkout@v4 | |
| - name: Install Crystal | |
| uses: crystal-lang/install-crystal@v1 | |
| with: | |
| crystal: ${{ matrix.crystal }} | |
| - name: Install shards | |
| run: shards install | |
| - name: Run tests | |
| run: crystal spec --order=random | |
| - name: Build | |
| run: shards build |