-
Notifications
You must be signed in to change notification settings - Fork 9
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 #5 from Ariel-Rodriguez/workflow
Add CI workflow
- Loading branch information
Showing
4 changed files
with
159 additions
and
16 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: CI | ||
run-name: Checks | ||
on: [push] | ||
jobs: | ||
Linux-sh: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" | ||
- run: echo "🔎 Testing branch ${{ github.ref }}" | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." | ||
- name: Give executable permissions to semver2.sh | ||
run: | | ||
chmod +x ${{ github.workspace }}/semver2.sh | ||
- name: Give executable permissions to test.sh | ||
run: | | ||
chmod +x ${{ github.workspace }}/test.sh | ||
- run: ls -lha ${{ github.workspace }} | ||
- name: test | ||
run: ${{ github.workspace }}/test.sh | ||
shell: sh | ||
Windows-cmd: | ||
runs-on: windows-latest | ||
steps: | ||
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" | ||
- run: echo "🔎 Testing branch ${{ github.ref }}" | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." | ||
- name: Give executable permissions to semver2.sh | ||
run: | | ||
chmod +x ${{ github.workspace }}/semver2.sh | ||
- name: Give executable permissions to test.sh | ||
run: | | ||
chmod +x ${{ github.workspace }}/test.sh | ||
- name: test | ||
run: sh ${{ github.workspace }}/test.sh | ||
shell: cmd |
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 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 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