From 52ba9e6377847b6ab7373e68995a81bdaa0173c9 Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Sun, 6 Feb 2022 11:36:27 +0100 Subject: [PATCH] CI: Add system dependencies --- .github/workflows/crystal.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/crystal.yml b/.github/workflows/crystal.yml index 8029ea7..0db7acb 100644 --- a/.github/workflows/crystal.yml +++ b/.github/workflows/crystal.yml @@ -7,6 +7,23 @@ on: branches: [ master ] jobs: + test: + runs-on: ubuntu-latest + + container: + image: crystallang/crystal + + steps: + - uses: actions/checkout@v2 + - name: Install system dependencies + run: | + apt-get update + apt-get install cmake + - name: Install project dependencies + run: shards install + - name: Run tests + run: crystal spec + build: runs-on: ubuntu-latest @@ -15,7 +32,12 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Install dependencies + - name: Install system dependencies + run: | + apt-get update + apt-get install cmake + + - name: Install project dependencies run: shards install - name: Run tests run: crystal build