Skip to content

Commit

Permalink
use matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiwara committed May 14, 2023
1 parent 0a1fe6d commit 2cbb31a
Showing 1 changed file with 8 additions and 39 deletions.
47 changes: 8 additions & 39 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,49 +8,18 @@ on:

jobs:
install:
strategy:
matrix:
action_version: ['v0', 'v1', 'v2', 'v2-action-testing']
install_version: ['latest', 'v1.7.15', 'v2.1.0']

name: test action
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: kayac/ecspresso@v2-action-testing
with:
version: latest
- run: |
ecspresso version 2>&1 | fgrep v2.
- uses: kayac/ecspresso@v2-action-testing
with:
version: 2.1.0
- run: |
ecspresso version 2>&1 | fgrep v2.1.0

- uses: kayac/ecspresso@v0
with:
version: v1.5.0
- run: |
ecspresso version 2>&1 | fgrep v1.5.0
- uses: kayac/ecspresso@v1
with:
version: v1.6.0
- run: |
ecspresso version 2>&1 | fgrep v1.6.0
- uses: kayac/ecspresso@v1
with:
version: latest
- run: |
ecspresso version 2>&1 | fgrep v1.7.
- uses: kayac/ecspresso@v2
with:
version: latest
- run: |
ecspresso version 2>&1 | fgrep v2.
- uses: kayac/ecspresso@v2
with:
version: v1.7.14
- run: |
ecspresso version 2>&1 | fgrep v1.7.14
- uses: kayac/ecspresso@v2
- uses: "kayac/ecspresso@{{ matrix.action_version }}"
with:
version-file: tests/.ecspresso-version
version: "{{ matrix.install_version }}"
- run: |
ecspresso version 2>&1 | fgrep v2.0.0
ecspresso version

0 comments on commit 2cbb31a

Please sign in to comment.