From c61fc25e9f292d2d327aa6f9e9342b9da4009054 Mon Sep 17 00:00:00 2001 From: Pau Perez Date: Tue, 9 Mar 2021 16:13:08 +0100 Subject: [PATCH] Disable Knapsack only to Github workflow --- .github/workflows/build.yml | 3 +++ Rakefile | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 445f5257da..91113b686f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,6 +4,9 @@ on: workflow_dispatch: push: +env: + DISABLE_KNAPSACK: true + jobs: test-models: runs-on: ubuntu-18.04 diff --git a/Rakefile b/Rakefile index 045e002991..f7fce19311 100755 --- a/Rakefile +++ b/Rakefile @@ -8,4 +8,6 @@ require_relative 'config/application' Openfoodnetwork::Application.load_tasks -Knapsack.load_tasks if defined?(Knapsack) +unless ENV['DISABLE_KNAPSACK'] + Knapsack.load_tasks if defined?(Knapsack) +end