Skip to content

Commit

Permalink
try reusing an action instead of a workflow so that the check name is…
Browse files Browse the repository at this point in the history
… persisted
  • Loading branch information
beaesguerra committed Oct 17, 2024
1 parent 6e587b1 commit b956751
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/actions/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: 'Lint'
description: 'Run linting checks'
runs:
using: 'composite'
steps:
- name: Print example
run: echo 'Hello'
9 changes: 8 additions & 1 deletion .github/workflows/node-ci-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,14 @@ jobs:
lint:
name: Lint
needs: prime_cache_primary
uses: ./.github/workflows/node-ci-lint.yml
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/lint.yml

test:
if: false
Expand Down

0 comments on commit b956751

Please sign in to comment.