Skip to content

Commit

Permalink
double check
Browse files Browse the repository at this point in the history
  • Loading branch information
rajbos authored Jul 27, 2023
1 parent 23a965f commit 70c7595
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/publishing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,23 @@ jobs:
id: tag_dev
run: |
GITHUB_REF="" node main.js
# shellcheck disable=SC2181
# shellcheck disable=SC2181
if [ $? -ne 1 ]; then echo "Expected failure on no GITHUB_REF set"; fi
GITHUB_REF=origin/refs/tag/v1 node main.js
# shellcheck disable=SC2181
if [ $? -ne 1 ]; then echo "Expected failure on invalid ref"; fi
GITHUB_REF=refs/tag/v1 node main.js
# shellcheck disable=SC2181
if [ $? -ne 0 ]; then echo "Not expected a failure on valid ref to tag"; fi
GITHUB_REF=refs/heads/main node main.js
# shellcheck disable=SC2181
if [ $? -ne 0 ]; then echo "Not expected a failure on valid ref to branch"; fi
GITHUB_REF=refs/tags/v1.0.0 node main.js
# shellcheck disable=SC2181
if [ $? -ne 0 ]; then echo "Not expected a failure on valid ref with minor version"; fi
- name: Test dev
Expand Down

0 comments on commit 70c7595

Please sign in to comment.