Skip to content

Commit

Permalink
refactor: remove input prop from github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-smiesna committed Jan 16, 2025
1 parent fdc08cf commit 4eab0fd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/audit/action.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
name: "Audit"
description: "Audit information"
inputs:
project:
description: "The project directory"
required: true
runs:
using: "composite"
steps:
- name: Audit project cd ${{ inputs.project }}
run: cd ${{ inputs.project }} && pnpm install && pnpm run audit --prod
- name: Audit project cd ${{ matrix.project }}
run: cd ${{ matrix.project }} && pnpm install && pnpm run audit --prod
shell: bash
4 changes: 0 additions & 4 deletions .github/workflows/github-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ jobs:
cache: "pnpm"
- name: Run lint
uses: ./.github/workflows/lint
with:
project: ${{ matrix.project }}

audit:
runs-on: ubuntu-22.04
Expand All @@ -60,8 +58,6 @@ jobs:
cache: "pnpm"
- name: Run audit
uses: ./.github/workflows/audit
with:
project: ${{ matrix.project }}

build:
runs-on: ubuntu-22.04
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/lint/action.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
name: "Lint"
description: "Runs a lint check on the innoverse next app"
inputs:
project:
description: "The project directory"
required: true
runs:
using: "composite"
steps:
- name: Install node in ${{ inputs.project }}
run: cd ${{ inputs.project }} && pnpm install && pnpm run lint
- name: Install node in ${{ matrix.project }}
run: cd ${{ matrix.project }} && pnpm install && pnpm run lint
shell: bash

0 comments on commit 4eab0fd

Please sign in to comment.