Skip to content

Commit

Permalink
update install-frontend-dependencies github action (#4402)
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyorlando authored May 27, 2024
1 parent 997cb64 commit d52e821
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 8 additions & 3 deletions .github/actions/install-frontend-dependencies/action.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
name: "Install frontend dependencies"
description: "Setup node + install frontend dependencies"
inputs:
working-directory:
description: "Relative path to oncall/grafana-plugin directory"
required: false
default: "."
runs:
using: "composite"
steps:
- uses: actions/setup-node@v3
with:
node-version: 18.16.0
cache: "yarn"
cache-dependency-path: grafana-plugin/yarn.lock
cache-dependency-path: ${{ inputs.working-directory }}/grafana-plugin/yarn.lock
- name: Use cached frontend dependencies
id: cache-frontend-dependencies
uses: actions/cache@v3
with:
path: grafana-plugin/node_modules
path: ${{ inputs.working-directory }}/grafana-plugin/node_modules
key: ${{ runner.os }}-frontend-node-modules-${{ hashFiles('grafana-plugin/yarn.lock') }}
- name: Install frontend dependencies
if: steps.cache-frontend-dependencies.outputs.cache-hit != 'true'
shell: bash
working-directory: grafana-plugin
working-directory: ${{ inputs.working-directory }}/grafana-plugin
run: yarn install --frozen-lockfile --prefer-offline --network-timeout 500000
2 changes: 0 additions & 2 deletions .github/actions/setup-python/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: "Setup Python"
description: "Setup Python + optionally install dependencies from a set of requirements file(s)"

inputs:
install-dependencies:
description: "Whether to install dependencies from the Python requirements file(s)"
Expand All @@ -10,7 +9,6 @@ inputs:
description: "The path(s) to the Python requirements file(s) to install"
required: false
default: "engine/requirements.txt engine/requirements-dev.txt"

runs:
using: "composite"
steps:
Expand Down

0 comments on commit d52e821

Please sign in to comment.