Skip to content

Commit

Permalink
Adds node-version-file option to workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
citin committed Dec 11, 2024
1 parent d2f7395 commit 82fa2a2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 115 deletions.
111 changes: 0 additions & 111 deletions .github/workflows/composite-workflow-eslint-9.yml

This file was deleted.

8 changes: 6 additions & 2 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ on:
workflow_call:
inputs:
ruby-version:
required: true
type: string
required: true
node-version:
type: string
required: false
node-version-file:
type: string
required: false
secrets:
bundle_github__com:
required: false
Expand All @@ -30,13 +33,14 @@ jobs:

eslint:
runs-on: ubuntu-latest
if: ${{ inputs.node-version }}
if: ${{ inputs.node-version || inputs.node-version-file }}
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
node-version-file: ${{ inputs.node-version-file }}
cache: yarn
- name: Yarn install
run: yarn install --production=false
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
node-version:
type: string
required: false
node-version-file:
type: string
required: false
secrets:
bundle_github__com:
required: false
Expand Down Expand Up @@ -51,13 +54,14 @@ jobs:
ruby-version: ${{ inputs.ruby-version }}
bundler-cache: true
- name: Setup Node
if: ${{ inputs.node-version }}
if: ${{ inputs.node-version || inputs.node-version-file }}
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
node-version-file: ${{ inputs.node-version-file }}
cache: yarn
- name: Yarn install
if: ${{ inputs.node-version }}
if: ${{ inputs.node-version || inputs.node-version-file }}
run: yarn install --production=false
- name: Install dependencies
run: |
Expand Down

0 comments on commit 82fa2a2

Please sign in to comment.