This repository has been archived by the owner on Feb 8, 2024. It is now read-only.
Update shard.lock #242
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 - Crystal | |
on: | |
push: | |
branches: [main] | |
paths: | |
- '.github/workflows/ci-crystal.yml' | |
- '**/*.cr' | |
- '**/*.ecr' | |
- 'shard.yml' | |
- 'shard.lock' | |
- '.tool-versions' | |
pull_request: | |
paths: | |
- '.github/workflows/ci-crystal.yml' | |
- '**/*.cr' | |
- '**/*.ecr' | |
- 'shard.yml' | |
- 'shard.lock' | |
- '.tool-versions' | |
jobs: | |
spec: | |
timeout-minutes: 5 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: crystal-lang/install-crystal@v1 | |
with: | |
# Keep same version as used in *.nix | |
crystal: '1.9.0' | |
shards: '0.17.3' | |
# Need node.js to install validator. Spec includes the validator runner | |
- run: crystal spec --tag '~needs_npm' | |
lint: | |
timeout-minutes: 5 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Crystal Ameba Linter | |
uses: crystal-ameba/github-action@v0.7.1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |