Skip to content

Commit

Permalink
Add deps installation (#5213)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzejewsky committed Oct 15, 2024
1 parent 182ba9e commit bbb7388
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/afraid-trees-wave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---

Now dependencies are installed properly in our pipelines, this means auth scripts are no longer stopping.
20 changes: 19 additions & 1 deletion .github/workflows/run-test-cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,26 @@ jobs:
ACCOUNTS: ${{ steps.accounts.outputs.ACCOUNTS }}
steps:
- uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"

- name: Cache node modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
sparse-checkout: ./.github/actions
path: ~/.npm
key: ${{ runner.os }}-qa-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-qa-${{ env.cache-name }}-
${{ runner.os }}-qa-
${{ runner.os }}-
- name: Install deps
run: npm ci

- name: Generate variables
id: cloud_variables
Expand Down
20 changes: 19 additions & 1 deletion .github/workflows/run-test-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,26 @@ jobs:
ACCOUNTS: ${{ steps.accounts.outputs.ACCOUNTS }}
steps:
- uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"

- name: Cache node modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
sparse-checkout: ./.github/actions
path: ~/.npm
key: ${{ runner.os }}-qa-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-qa-${{ env.cache-name }}-
${{ runner.os }}-qa-
${{ runner.os }}-
- name: Install deps
run: npm ci

- name: Set variables mode
id: set_variables_mode
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/run-tests-on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,26 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"

- name: Cache node modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-qa-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-qa-${{ env.cache-name }}-
${{ runner.os }}-qa-
${{ runner.os }}-
- name: Install deps
run: npm ci

- id: check-framework
uses: actions/github-script@v7
env:
Expand Down

0 comments on commit bbb7388

Please sign in to comment.