chore(CI): speed up #81
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 | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 6 * * 1" | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
crystal: | |
- latest | |
- nightly | |
runs-on: ${{ matrix.os }} | |
container: crystallang/crystal:${{ matrix.crystal }}-alpine | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Add encodings | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y locales | |
sudo locale-gen zh_CN.GB2312 | |
- name: Install dependencies | |
run: shards install --ignore-crystal-version --skip-postinstall --skip-executables | |
- name: Format | |
run: crystal tool format --check | |
- name: Run tests | |
run: crystal spec -v --error-trace |