-
Notifications
You must be signed in to change notification settings - Fork 492
Add Github actions #2477
Add Github actions #2477
Conversation
Adds a script that tests whether Bosun starts and stops cleanly. Mostly taken from the old `validate.sh` script
1c88337 to
e75ae7d
Compare
.github/workflows/ci.yaml
Outdated
| jobs: | ||
| checks: | ||
| name: Code style | ||
| runs-on: ubuntu-latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is is possible to pin this ? Otherwise is there the potential for changes in ubuntu base image to break the builds
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pinned.
Makefile
Outdated
| @if [ -n "$$(git status --porcelain)" ]; then \ | ||
| echo "There are uncommitted changes in the repository."; \ | ||
| @if [ -n "$$(git diff --exit-code --name-only)" ]; then \ | ||
| echo "There following files are uncommitted changes in the repository:"; \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
Adds a Github actions pipeline that builds the binaries, runs all tests and checks. This can eventually replace Travis or some parts that are run in its pipeline.
Formats all imports with goimports so that we're starting in a state that the linter is happy
Instead of installing typescript globally, take it from the package.lock file to that it installs typescript into the local node_modules directory
e75ae7d to
f5b5371
Compare
johnewing1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fixes. Looks good now
Description
Adds a Github actions pipeline that builds the binaries, runs all tests and checks. This can eventually replace Travis or some parts that are run in its pipeline.
Also adds a check that all source files have been formatted with
goimports. This explains the reordering of imports in this PR.Type of change
From the following, please check the options that are relevant.
How has this been tested?
Checklist:
Any dependent changes have been merged and published in downstream modules