nix-config/.github/workflows/tests.yml

26 lines
511 B
YAML
Raw Normal View History

name: tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
2023-07-17 00:17:44 +02:00
crystal:
runs-on: ubuntu-latest
container:
image: crystallang/crystal
steps:
- uses: actions/checkout@v3
- name: Run tests
2023-07-17 00:18:27 +02:00
run: crystal spec tests/main.cr --verbose
2023-07-17 00:18:07 +02:00
- name: Check formatting
run: crystal tool format --check
2023-07-18 16:26:52 +02:00
nix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
- run: nix flake check