-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added possibility to trigger workflow manually
Each workflow should be malually triggerable and should trigger its downstream dependencies. This commit adresses the first part of that statement. Triggering of downstream dependencies is not yet developed, as downstream workflows aren't yet created.
- Loading branch information
1 parent
e59dfd9
commit 5affb78
Showing
1 changed file
with
25 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 |
---|---|---|
|
@@ -6,6 +6,7 @@ on: | |
branches: | ||
- master | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-and-test: | ||
|
@@ -25,13 +26,37 @@ jobs: | |
run: | | ||
mkdir -p /tmp/test-results/keep-core-go | ||
cd /tmp/test-results/keep-core-go/ | ||
- name: DEBUG | ||
run: | | ||
pwd | ||
- name: DEBUG | ||
run: | | ||
ls | ||
- name: DEBUG | ||
run: | | ||
ls /tmp/test-results/keep-core-go/ | ||
- name: DEBUG | ||
run: | | ||
ls /home/runner/work/keep-core/keep-core | ||
- name: Run Go tests | ||
run: | | ||
docker run \ | ||
--volume /tmp/test-results/keep-core-go:/mnt/test-results \ | ||
--workdir /go/src/github.com/keep-network/keep-core \ | ||
go-build-env \ | ||
gotestsum --junitfile /mnt/test-results/unit-tests.xml | ||
- name: DEBUG | ||
run: | | ||
pwd | ||
- name: DEBUG | ||
run: | | ||
ls | ||
- name: DEBUG | ||
run: | | ||
ls /tmp/test-results/keep-core-go/ | ||
- name: DEBUG | ||
run: | | ||
ls /home/runner/work/keep-core/keep-core | ||
- name: Publish Unit Test results | ||
uses: EnricoMi/[email protected] | ||
if: always() # guarantees that this action always runs, even if earlier steps fail | ||
|