From 1e51ca462d384f90824692d3db04e2fb8272ea6b Mon Sep 17 00:00:00 2001 From: Elias Perez Date: Mon, 12 Aug 2024 16:08:11 -0400 Subject: [PATCH] Fix dependency installation and typo in CI workflow Added step to install dependencies with shards in API Docs job of CI workflow to ensure environment consistency. Fixed a typo in the name of the code style check step. Removed an extra newline in spec_helper.cr for better code cleanliness. --- .github/workflows/crystal.yml | 4 +++- spec/spec_helper.cr | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/crystal.yml b/.github/workflows/crystal.yml index c71e430..ebbc8b9 100644 --- a/.github/workflows/crystal.yml +++ b/.github/workflows/crystal.yml @@ -26,6 +26,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - name: Install dependencies + run: shards install - name: Generate Azu API Docs run: crystal docs - name: Setup Pages @@ -61,7 +63,7 @@ jobs: - uses: actions/checkout@v2 - name: Install dependencies run: shards install - - name: Check code styl2e + - name: Check code style run: crystal tool format --check - name: Run tests run: crystal spec diff --git a/spec/spec_helper.cr b/spec/spec_helper.cr index d43d72b..e185805 100644 --- a/spec/spec_helper.cr +++ b/spec/spec_helper.cr @@ -5,4 +5,3 @@ require "../src/cql" require "./models/*" require "./migrations/*" require "./schemas/*" -