From eeadd3c15f536de9ef4e3b381df346fe19369285 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Fri, 11 Aug 2023 09:23:34 +1200 Subject: [PATCH] fix: explicitly setup `node` and run `yarn install` before running specs (#459) Technically API-only apps won't need this but we pretty much never do those and this shouldn't error so at worse it'll just add a couple of seconds to CI. Resolves #456 --- variants/github_actions_ci/workflows/ci.yml.tt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/variants/github_actions_ci/workflows/ci.yml.tt b/variants/github_actions_ci/workflows/ci.yml.tt index 18d33a37..3e8bb1fa 100644 --- a/variants/github_actions_ci/workflows/ci.yml.tt +++ b/variants/github_actions_ci/workflows/ci.yml.tt @@ -101,6 +101,11 @@ jobs: - run: bundle exec rubocop - run: bundle exec brakeman --run-all-checks --exit-on-warn --format plain . - run: bundle exec rails db:setup + - uses: actions/setup-node@v3 + with: + node-version-file: ".node-version" + cache: "yarn" + - run: yarn install --frozen-lockfile - run: bundle exec rspec spec --format progress - name: Archive spec outputs uses: actions/upload-artifact@v3