这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Conversation

@muffix
Copy link
Member

@muffix muffix commented May 11, 2020

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.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How has this been tested?

Checklist:

  • This contribution follows the project's code of conduct
  • This contribution follows the project's contributing guidelines
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Adds a script that tests whether Bosun starts and stops cleanly. Mostly
taken from the old `validate.sh` script
@muffix muffix force-pushed the add-github-actions branch 5 times, most recently from 1c88337 to e75ae7d Compare May 11, 2020 18:52
jobs:
checks:
name: Code style
runs-on: ubuntu-latest
Copy link
Contributor

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

Copy link
Member Author

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:"; \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

muffix added 3 commits May 12, 2020 13:57
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
@muffix muffix force-pushed the add-github-actions branch from e75ae7d to f5b5371 Compare May 12, 2020 12:57
@muffix muffix requested a review from johnewing1 May 12, 2020 13:20
Copy link
Contributor

@johnewing1 johnewing1 left a 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

@muffix muffix merged commit 6c5e93a into bosun-monitor:master May 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants