From a349b0281146e54836a7733922db80ba2adb0d49 Mon Sep 17 00:00:00 2001 From: devnote-dev Date: Mon, 30 Sep 2024 03:15:15 +0100 Subject: [PATCH] feat(workflows): update ci & nightly workflows --- .github/workflows/ci.yml | 6 ++++++ .github/workflows/nightly.yml | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ebb4b8b..1b36871 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,6 +24,9 @@ jobs: with: crystal: latest + - name: Install Dependencies + run: shards install --production + - name: Install Ameba uses: crystal-ameba/github-action@v0.8.0 env: @@ -31,3 +34,6 @@ jobs: - name: Check Format run: crystal tool format --check + + - name: Check Unreachable + run: crystal tool unreachable src/main.cr --check diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index c1424b3..a21c846 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -2,7 +2,7 @@ name: Nightly on: schedule: - - cron: 0 0 * * * + - cron: 0 6 * * 6 permissions: actions: write @@ -18,7 +18,7 @@ jobs: - name: Install Crystal uses: crystal-lang/install-crystal@v1 with: - crystal: latest + crystal: nightly - name: Install Dependencies run: shards install --production @@ -46,7 +46,7 @@ jobs: - name: Install Crystal uses: crystal-lang/install-crystal@v1 with: - crystal: latest + crystal: nightly - name: Install Dependencies run: shards install --production