Skip to content

Commit

Permalink
Fix strategy matrix usage
Browse files Browse the repository at this point in the history
  • Loading branch information
nizarmah committed Mar 17, 2024
1 parent c25cf0f commit c540376
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,25 @@ on:

jobs:
action:
name: "Tests the action inputs"

runs-on: ubuntu-latest

strategy:
matrix:
include:
- test: directory
params:
- name: "Targets the specified directory"
with:
directory: 'tests/action/directory/*'

steps:
- name: Checkout the repository
uses: actions/checkout@v4

- name: Targets the specified directory
- name: ${{ matrix.name }}
uses: ./
with: ${{ toJSON(matrix.params) }}
with:
directory: ${{ matrix.with.directory }}

- name: Compare the minified files
run: git diff --exit-code

0 comments on commit c540376

Please sign in to comment.