From d580bf85a7b2d30c12997f7340e7c4be8cbf6549 Mon Sep 17 00:00:00 2001 From: Chris Watson Date: Wed, 17 Feb 2021 20:41:38 -0700 Subject: [PATCH] Update action files --- .github/workflows/crystal.yml | 15 ++++++++++----- .github/workflows/docs.yml | 10 +++++----- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.github/workflows/crystal.yml b/.github/workflows/crystal.yml index de180ada0..a327167b0 100644 --- a/.github/workflows/crystal.yml +++ b/.github/workflows/crystal.yml @@ -1,18 +1,23 @@ name: Specs -on: [push] +on: [push, pull_request] jobs: build: runs-on: ubuntu-latest - - container: - image: crystallang/crystal - + strategy: + matrix: + crystal-version: [0.36.1] + steps: - uses: actions/checkout@v2 + - uses: oprypin/install-crystal@v1 + with: + crystal: ${{ matrix.crystal-version }} - name: Install dependencies run: shards install + - name: Format code + run: crystal tool format --check - name: Run tests run: crystal spec diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 143a7d7c3..39c211ca3 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -9,14 +9,14 @@ jobs: strategy: matrix: python-version: [3.8] + crystal-version: [0.36.1] - container: - image: crystallang/crystal - steps: - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + - uses: oprypin/install-crystal@v1 + with: + crystal: ${{ matrix.crystal-version }} + - uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - name: Install Python Dependencies