-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: setup ci workflow for unit tests
- Loading branch information
1 parent
a4ffd48
commit bc7ab1c
Showing
3 changed files
with
44 additions
and
0 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,24 @@ | ||
name: Continuous Integration Workflow | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
test_job: | ||
runs-on: ubuntu-latest | ||
name: A job to run the Ys tests | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Test action step | ||
id: test | ||
uses: ./.github/actions/test | ||
|
||
- name: Get the output data | ||
run: echo "ls -la results ${{ steps.test.outputs.files }}" |
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,8 @@ | ||
FROM ubuntu:20.04 | ||
|
||
RUN apt-get update && apt-get install -y curl git gcc make | ||
|
||
# RUN sh -c "`curl -L https://raw.githubusercontent.com/rylnd/shpec/master/install.sh`" | ||
|
||
COPY scripts/entrypoint.sh /entrypoint.sh | ||
ENTRYPOINT ["/entrypoint.sh"] |
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,12 @@ | ||
#!/bin/sh -l | ||
|
||
ret="$(make -s unit_test 2>/dev/null)" | ||
|
||
echo "$ret" | ||
|
||
if [ "$(echo "$ret" | grep 'not ok')" != "" ]; then | ||
exit 1 | ||
fi | ||
|
||
# make -s integ_test 2>/dev/null | ||
exit $? |