From a4f96419787bafa9c185a1304cc1eae2db0ce0d9 Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Thu, 5 Oct 2023 20:48:41 +0900 Subject: [PATCH] Cloning submodule will done by checkout action https://stackoverflow.com/a/70882149/1212807 --- .github/workflows/ci-nix.yml | 2 ++ Makefile.toml | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-nix.yml b/.github/workflows/ci-nix.yml index 4706996..ff245ad 100644 --- a/.github/workflows/ci-nix.yml +++ b/.github/workflows/ci-nix.yml @@ -25,6 +25,8 @@ jobs: timeout-minutes: 30 steps: - uses: actions/checkout@v4 + with: + submodules: recursive - uses: DeterminateSystems/nix-installer-action@v5 - uses: DeterminateSystems/magic-nix-cache-action@v2 - run: nix flake check diff --git a/Makefile.toml b/Makefile.toml index 0e1f97d..5d3e6d8 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -5,10 +5,16 @@ skip_core_tasks = true category = "Tools" description = "Run formatters without changes" script = [ - "git submodule update --init --recursive", "npm install", ] +[tasks.setup-submodule] +category = "Tools" +description = "Run formatters without changes" +script = [ + "git submodule update --init --recursive", +] + [tasks.format-check] category = "Tools" description = "Run formatters without changes"