Skip to content

Commit

Permalink
Use oprypin/install-crystal for Github Actions (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmcgarvey committed Jan 27, 2021
1 parent e17ca6e commit 094aef8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/specs.yml
Expand Up @@ -9,24 +9,36 @@ on:
jobs:
check-format:
runs-on: ubuntu-latest
container:
image: crystallang/crystal:0.35.1
steps:
- uses: actions/checkout@v1
- name: Install Crystal
uses: oprypin/install-crystal@v1
with:
crystal: latest
- name: Install shards
run: shards install --ignore-crystal-version
run: shards install
- name: Format
run: crystal tool format --check
- name: Lint
run: ./bin/ameba
verify-chrome:
runs-on: ubuntu-latest
container:
image: crystallang/crystal:0.35.1
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
crystal: latest
- os: ubuntu-latest
crystal: nightly
- os: macos-latest
crystal: latest
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
- name: Install Chrome browser
run: apt update && apt install -y chromium-browser
- name: Install Crystal
uses: oprypin/install-crystal@v1
with:
crystal: ${{matrix.crystal}}
- name: Install dependencies
run: shards install --ignore-crystal-version
- name: Run tests
Expand Down
2 changes: 1 addition & 1 deletion shard.yml
Expand Up @@ -10,4 +10,4 @@ development_dependencies:
version: ~> 0.3.2
ameba:
github: crystal-ameba/ameba
version: ~> 0.13.2
version: ~> 0.13.4

0 comments on commit 094aef8

Please sign in to comment.