Add use_color option to show_plot #72
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: Test | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu, macos, windows] | |
| crystal: [latest] | |
| runs-on: ${{ matrix.os }}-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: recursive | |
| - name: Install Crystal | |
| uses: crystal-lang/install-crystal@v1 | |
| with: | |
| crystal: ${{ matrix.crystal }} | |
| - name: Install shards | |
| run: shards install --without-development | |
| - name: Run specs | |
| run: crystal spec | |
| - name: Build examples | |
| shell: bash | |
| run: | | |
| find examples -name "*.cr" | sort | while read -r f; do | |
| echo "Building $f ..." | |
| crystal build --no-codegen "$f" | |
| done | |
| - name: Check formatting | |
| if: runner.os != 'Windows' | |
| run: crystal tool format --check |