Skip to content

Commit

Permalink
Add GitHub Action test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bcardiff committed Sep 16, 2023
1 parent d5a5d04 commit fcea435
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "Test"

on:
pull_request:
branches: [master]
push:

jobs:
tests:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
- uses: cachix/cachix-action@v12
with:
name: devenv
- name: Install devenv.sh
run: nix profile install tarball+https://install.devenv.sh/latest
shell: sh
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
- run: devenv ci
- run: devenv shell crystal spec

0 comments on commit fcea435

Please sign in to comment.