Clean-up digging operation when client is disconnected #259
Workflow file for this run
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: CI (windows) | |
on: pull_request | |
jobs: | |
RunSpecs: | |
runs-on: windows-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
crystal_version: | |
- 1.8.2 | |
- latest | |
experimental: | |
- false | |
steps: | |
- uses: actions/[email protected] | |
- name: Install Crystal | |
uses: crystal-lang/install-crystal@v1 | |
with: | |
crystal: ${{ matrix.crystal_version }} | |
- name: Set up Crystal cache | |
uses: actions/[email protected] | |
id: crystal-cache | |
with: | |
path: | | |
~/.cache/crystal | |
bin/ameba | |
lib | |
key: ${{ runner.os }}-crystal-${{ matrix.crystal_version }}-${{ hashFiles('**/shard.yml') }} | |
restore-keys: | | |
${{ runner.os }}-crystal- | |
- name: Install shards | |
if: steps.crystal-cache.outputs.cache-hit != 'true' | |
run: | | |
shards check | |
if ($LASTEXITCODE -ne 0) { | |
shards install --ignore-crystal-version --skip-postinstall --skip-executables | |
} | |
shell: pwsh | |
- name: Create .env | |
run: New-Item -Path . -Name ".env" -ItemType "file" | |
- name: Run tests | |
run: crystal spec spec/rosegold_spec.cr spec/models spec/minecraft |