Continuous Integration #389
This file contains 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: Continuous Integration | |
on: | |
push: | |
tags: | |
- "v[0-9]+.[0-9]+.[0-9]+" | |
branches: | |
- "**" | |
pull_request: | |
branches: | |
- "**:**" | |
release: | |
schedule: | |
- cron: "0 6 * * *" | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: crystal-lang/install-crystal@v1 | |
- run: crystal tool format && git diff --exit-code | |
test_linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: crystal-lang/install-crystal@v1 | |
with: | |
crystal: nightly | |
- run: crystal spec -Dpreview_mt -Devloop=epoll spec/*_spec.cr -v | |
- run: crystal spec -Dpreview_mt -Devloop=epoll -Dmt spec/*_spec.cr -v | |
- run: crystal spec -Dpreview_mt -Devloop=libevent spec/*_spec.cr -v | |
- run: crystal spec -Dpreview_mt -Devloop=libevent -Dmt spec/*_spec.cr -v | |
test_macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: crystal-lang/install-crystal@v1 | |
with: | |
crystal: nightly | |
- run: crystal spec -Dpreview_mt -Devloop=kqueue spec/*_spec.cr -v | |
- run: crystal spec -Dpreview_mt -Devloop=kqueue -Dmt spec/*_spec.cr -v | |
- run: crystal spec -Dpreview_mt -Devloop=libevent spec/*_spec.cr -v | |
- run: crystal spec -Dpreview_mt -Devloop=libevent -Dmt spec/*_spec.cr -v | |
#test_windows: | |
# runs-on: windows-latest | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - uses: crystal-lang/install-crystal@v1 | |
# with: | |
# crystal: "branch:feature/evloop-iocp" | |
# - run: crystal spec -Dpreview_mt spec/*_spec.cr -v | |
# - run: crystal spec -Dpreview_mt -Dmt spec/*_spec.cr -v |