mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-25 09:43:11 +01:00
4f64d67cff
Not available in the Nix action. It's Ubuntu after all.
26 lines
511 B
YAML
26 lines
511 B
YAML
name: tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
crystal:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: crystallang/crystal
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Run tests
|
|
run: crystal spec tests/main.cr --verbose
|
|
- name: Check formatting
|
|
run: crystal tool format --check
|
|
nix:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: cachix/install-nix-action@v22
|
|
- run: nix flake check
|