-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from garciasdos/feature/add_unit_test
Feature/add unit test
- Loading branch information
Showing
6 changed files
with
22 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
name: CD | ||
on: | ||
push: | ||
branches: [ master ] | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
|
@@ -18,5 +22,7 @@ jobs: | |
env: | ||
GIT_CRYPT_KEY: "AEdJVENSWVBUS0VZAAAAAgAAAAAAAAABAAAABAAAAAAAAAADAAAAIF85B7kFpHjz49GStZm1ctyWQv+o3qvHlbAiMB/VgJQRAAAABQAAAEC4OV4QgSqUqF1ChA9uz6JT3F80yV5KjxMm6YqBZX+zRwsgWMqK+164ptiSy+Pfo+IrPH5boZfebV6IdCHl8/4NAAAAAA==" | ||
|
||
- name: Github Action gen-sh-unittest | ||
uses: vargiuscuola/gen-sh-unittest@master | ||
- name: GitHub Action to run shunit2 tests | ||
uses: TheColvinCo/[email protected] | ||
env: | ||
SHUNIT_TEST_FOLDER: "tests/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh -l | ||
|
||
EXPECTED_TEXT="this is a secret file" | ||
TEXT=$(cat test.txt) | ||
|
||
testIsUnlockingInTheRightWay() { | ||
assertEquals "$EXPECTED_TEXT" "$TEXT" | ||
} | ||
|
||
. /usr/bin/shunit2 |
File renamed without changes.