Skip to content

Commit

Permalink
chore: test if test works
Browse files Browse the repository at this point in the history
  • Loading branch information
saionaro committed May 11, 2024
1 parent d547979 commit 2bb9e43
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Test
on: [push]

env:
VERSION_WE_ARE_LOOKING_FOR: "3.14.16"
EXPECTED: "3.14.16"

jobs:
release:
Expand All @@ -18,7 +18,7 @@ jobs:
- run: npm ci
- run: mkdir ./test_1
- run: |
echo '{"version": "${{ env.VERSION_WE_ARE_LOOKING_FOR }}"}' > ./test_1/package.json
echo '{"version": "${{ env.EXPECTED }}"}' > ./test_1/package.json
- name: Test 1
id: package_ver
uses: ./
Expand All @@ -28,10 +28,9 @@ jobs:
- name: Check results
uses: actions/github-script@v7
env:
EXPECTED: ${{ env.VERSION_WE_ARE_LOOKING_FOR }}
RECEIVED: ${{ steps.package_ver.outputs.version }}
with:
script: |
const { EXPECTED, RECEIVED } = process.env;
if (RECEIVED !== EXPECTED)
if (RECEIVED !== '321')
core.setFailed(`Expected [${EXPECTED}], but got [${RECEIVED}]`)

0 comments on commit 2bb9e43

Please sign in to comment.