Skip to content

Commit

Permalink
Add tests for all OS's
Browse files Browse the repository at this point in the history
  • Loading branch information
mukunku authored Aug 12, 2023
1 parent dec555f commit 2cc5f1f
Showing 1 changed file with 45 additions and 3 deletions.
48 changes: 45 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
- master

jobs:
test:
name: Test
test-unix:
name: Test Unix
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -26,4 +26,46 @@ jobs:
- name: Result of checkTag
run: test "true" = "${{ steps.checkTag.outputs.exists }}"
- name: Result of notExist
run: test "false" = "${{ steps.notExist.outputs.exists }}"
run: test "false" = "${{ steps.notExist.outputs.exists }}"

test-windows:
name: Test Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: 'tag-exists-action: true'
id: checkTag
uses: ./
with:
tag: 'v1.0.0'
- name: 'tag-exists-action: false'
id: notExist
uses: ./
with:
tag: 'not-exist-tag-for-testing'

- name: Result of checkTag
run: test "true" = "${{ steps.checkTag.outputs.exists }}"
- name: Result of notExist
run: test "false" = "${{ steps.notExist.outputs.exists }}"

test-macos:
name: Test MacOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: 'tag-exists-action: true'
id: checkTag
uses: ./
with:
tag: 'v1.0.0'
- name: 'tag-exists-action: false'
id: notExist
uses: ./
with:
tag: 'not-exist-tag-for-testing'

- name: Result of checkTag
run: test "true" = "${{ steps.checkTag.outputs.exists }}"
- name: Result of notExist
run: test "false" = "${{ steps.notExist.outputs.exists }}"

0 comments on commit 2cc5f1f

Please # to comment.