Skip to content

Commit

Permalink
Get tests to run locally
Browse files Browse the repository at this point in the history
The Github pipelines are checking out helm charts, whereas it is not doing so locally. Changing the test to look at a local version of helm-charts. Unfortunately this means that we are tied to having the helm charts repo checked out to get it passing locally.
  • Loading branch information
minhngocd committed Sep 20, 2024
1 parent c57e9fe commit 19c361d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: alphagov/govuk-helm-charts
path: vendor/govuk-helm-charts
path: ../govuk-helm-charts

- name: Setup Ruby
uses: ruby/setup-ruby@v1
Expand Down
2 changes: 1 addition & 1 deletion spec/db/scrub_access_limited_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
RSpec.describe "Scrub Access Limited SQL Script" do
def execute_sql
sql = File.read(Rails.root.join("vendor/govuk-helm-charts/charts/db-backup/scripts/content-publisher.sql"))
sql = File.read(Rails.root.join("../govuk-helm-charts/charts/db-backup/scripts/content-publisher.sql"))
ActiveRecord::Base.connection.execute(sql)
end

Expand Down

0 comments on commit 19c361d

Please sign in to comment.