-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ff81291
commit 04302cb
Showing
4 changed files
with
12 additions
and
14 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 |
---|---|---|
|
@@ -28,4 +28,4 @@ jobs: | |
docker-compose up -d | ||
popd | ||
- name: Run tests | ||
run: cd go && go test ./test/... | ||
run: cd go && make run-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Run tests | ||
name: Run tests JS | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
|
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 |
---|---|---|
|
@@ -19,18 +19,7 @@ jobs: | |
- name: Install Go | ||
uses: actions/[email protected] | ||
- name: Run gofmt | ||
run: | | ||
cd go | ||
fmt_output=$(gofmt -l .) | ||
if [ -n "$fmt_output" ]; then | ||
echo "Code not formatted correctly:" | ||
echo "$fmt_output" | ||
exit 1 | ||
else | ||
echo "Code is formatted correctly" | ||
exit 0 | ||
fi | ||
run: cd go && make check-format | ||
lint-js: | ||
name: Check code format for JavaScript | ||
runs-on: ubuntu-latest | ||
|
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,9 @@ | ||
|
||
run-tests: | ||
go test ./test -v | ||
|
||
check-format: | ||
cd scripts/ && ./check-format.sh && cd ../.. | ||
|
||
format: | ||
gofmt -w . |