summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorJames Mills <prologic@shortcircuit.net.au>2020-03-09 21:35:24 +1000
committerGitHub <noreply@github.com>2020-03-09 21:35:24 +1000
commite183d7499e4568a31b595e946eaa145356f436ce (patch)
tree6f8eb047f703cc226bb3d77639acdc9beea3e258 /.github
parent550f3078a3be9bb8c1ac6cf9f99905dcc2b3c7cc (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.yml39
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