Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify github workflow #8

Merged
merged 1 commit into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Linters

on:
push:
branches:
- master
pull_request:
branches:
- "*"

jobs:
linters:
name: Linters
runs-on: ubuntu-latest
steps:
- name: Download source
uses: actions/checkout@v3

- name: Install Crystal
uses: crystal-lang/install-crystal@v1

- name: Cache shards
uses: actions/cache@v2
with:
path: lib
key: ${{ runner.os }}-shards-${{ hashFiles('**/shard.lock') }}
restore-keys: ${{ runner.os }}-shards-

- name: Install shards
run: shards update

- name: Run linter
run: bin/ameba
25 changes: 13 additions & 12 deletions .github/workflows/ci.yml → .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
name: CI
name: Tests

on:
push:
branches: [master]
branches:
- master
pull_request:
branches: [master]
branches:
- "*"

jobs:
Tests:
tests:
name: Tests
runs-on: ubuntu-latest

strategy:
matrix:
store: ["memory", "redis"]

store:
- memory
- redis
services:
redis:
image: redis
ports:
- 6379:6379

steps:
- name: Download source
uses: actions/checkout@v3
Expand All @@ -36,9 +40,6 @@ jobs:
run: shards update

- name: Run tests
run: crystal spec
run: crystal spec --verbose
env:
STORE: ${{ matrix.store }}

- name: Ameba
run: bin/ameba
Loading