-
Notifications
You must be signed in to change notification settings - Fork 71.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6650 from nightscout/dev
Release 14.1.0
- Loading branch information
Showing
146 changed files
with
20,891 additions
and
17,923 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 |
---|---|---|
@@ -1,34 +1,93 @@ | ||
name: CI test | ||
name: CI test and publish Docker image | ||
|
||
on: [push, pull_request] | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- dev | ||
pull_request: | ||
branches: | ||
- master | ||
- dev | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-16.04 | ||
|
||
test: | ||
name: Run Tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [12.x] | ||
node-version: [12.x, 14.x] | ||
mongodb-version: [4.2, 4.4] | ||
|
||
steps: | ||
- name: Git Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Start MongoDB ${{ matrix.mongodb-version }} | ||
uses: supercharge/[email protected] | ||
with: | ||
mongodb-version: ${{ matrix.mongodb-version }} | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
- name: Run Tests | ||
run: npm run-script test-ci | ||
- name: Send Coverage | ||
run: npm run-script coverage | ||
|
||
publish_dev: | ||
name: Publish dev branch to Docker Hub | ||
needs: test | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'refs/heads/dev' | ||
env: | ||
DOCKER_IMAGE: nightscout/cgm-remote-monitor | ||
steps: | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USER }} | ||
password: ${{ secrets.DOCKER_PASS }} | ||
- name: Clean git Checkout | ||
if: success() | ||
uses: actions/checkout@v2 | ||
- name: Build, tag and push the dev Docker image | ||
if: success() | ||
run: | | ||
docker build --no-cache=true -t ${{ env.DOCKER_IMAGE }}:dev_${{ github.sha }} . | ||
docker image push ${{ env.DOCKER_IMAGE }}:dev_${{ github.sha }} | ||
docker tag ${{ env.DOCKER_IMAGE }}:dev_${{ github.sha }} ${{ env.DOCKER_IMAGE }}:latest_dev | ||
docker image push ${{ env.DOCKER_IMAGE }}:latest_dev | ||
publish_master: | ||
name: Publish master branch to Docker Hub | ||
needs: test | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'refs/heads/master' | ||
env: | ||
DOCKER_IMAGE: nightscout/cgm-remote-monitor | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Install MongoDB | ||
run: | | ||
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add - | ||
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list | ||
sudo apt-get update | ||
sudo apt-get install -y mongodb-org | ||
sudo apt-get install -y --allow-downgrades mongodb-org=4.4.0 mongodb-org-server=4.4.0 mongodb-org-shell=4.4.0 mongodb-org-mongos=4.4.0 mongodb-org-tools=4.4.0 | ||
- name: Start MongoDB | ||
run: sudo systemctl start mongod | ||
- name: Run Tests | ||
run: npm run-script test-ci | ||
- name: Send Coverage | ||
run: npm run-script coverage | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USER }} | ||
password: ${{ secrets.DOCKER_PASS }} | ||
- name: Clean git Checkout | ||
if: success() | ||
uses: actions/checkout@v2 | ||
- name: get-npm-version | ||
if: success() | ||
id: package-version | ||
uses: martinbeentjes/npm-get-version-action@master | ||
- name: Build, tag and push the master Docker image | ||
if: success() | ||
run: | | ||
docker build --no-cache=true -t ${{ env.DOCKER_IMAGE }}:${{ steps.package-version.outputs.current-version }} . | ||
docker image push ${{ env.DOCKER_IMAGE }}:${{ steps.package-version.outputs.current-version }} | ||
docker tag ${{ env.DOCKER_IMAGE }}:${{ steps.package-version.outputs.current-version }} ${{ env.DOCKER_IMAGE }}:latest | ||
docker image push ${{ env.DOCKER_IMAGE }}: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 |
---|---|---|
@@ -1 +1 @@ | ||
10.16.0 | ||
14.15.3 |
This file was deleted.
Oops, something went wrong.
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
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
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
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
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,11 +1,14 @@ | ||
import './bundle.source'; | ||
|
||
window.Nightscout.report_plugins = require('../lib/report_plugins/')(); | ||
console.info('Nightscout report bundle start'); | ||
|
||
window.Nightscout.report_plugins_preinit = require('../lib/report_plugins/'); | ||
window.Nightscout.predictions = require('../lib/report/predictions'); | ||
window.Nightscout.reportclient = require('../lib/report/reportclient'); | ||
|
||
console.info('Nightscout report bundle ready'); | ||
|
||
// Needed for Hot Module Replacement | ||
if(typeof(module.hot) !== 'undefined') { | ||
module.hot.accept() | ||
} | ||
} |
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
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,3 @@ | ||
files: | ||
- source: /translations/en/*.json | ||
translation: /translations/%locale_with_underscore%.json |
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
Binary file not shown.
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
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
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
Oops, something went wrong.