diff options
author | James Mills <prologic@shortcircuit.net.au> | 2020-03-09 21:35:24 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-09 21:35:24 +1000 |
commit | e183d7499e4568a31b595e946eaa145356f436ce (patch) | |
tree | 6f8eb047f703cc226bb3d77639acdc9beea3e258 /.github | |
parent | 550f3078a3be9bb8c1ac6cf9f99905dcc2b3c7cc (diff) |
Migrate Travis based checks to Github Actions (#8329)
* Migrate Travis based checks to Github Actions
* Remove Gitlab CI config
* Remove ./build/build.sh and use simple shell to do consistency checks on Dashbaord JS
* Install prereq deps
* Rename job
* Fix brain fart momemt
* Split Dashboard checks into a separate job
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/checks.yml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml new file mode 100644 index 0000000000..6e379d12e3 --- /dev/null +++ b/.github/workflows/checks.yml @@ -0,0 +1,39 @@ +--- +name: Checks +on: + push: + branches: + - master + pull_request: +jobs: + checksum-checks: + name: Checksums + runs-on: ubuntu-latest + steps: + - name: Git clone repository + uses: actions/checkout@v2 + - name: Run checksum checks on kickstart files + env: + LOCAL_ONLY: "true" + run: | + ./tests/installer/checksums.sh + dashboard-checks: + name: Dashboard + runs-on: ubuntu-latest + steps: + - name: Git clone repository + uses: actions/checkout@v2 + - name: Install required packages + run: | + ./packaging/installer/install-required-packages.sh --dont-wait --non-interactive netdata + - name: Backup dashboard.js + run: | + cp web/gui/dashboard.js /tmp/dashboard.js + - name: Regenerate dashboard.js + run: | + autoreconf -ivf + ./configure --enable-maintainer-mode + make dist + - name: Compare generated Dashboard vs. Backed up Dashboard + run: | + diff -sNrdu /tmp/dashboard.js web/gui/dashboard.js |