Skip to content

Add show/hide all metrics buttons #339

Add show/hide all metrics buttons

Add show/hide all metrics buttons #339

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: node.js CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
lint:
name: eslint Linter
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
# checksums for git repo dependencies are broken
- run: yarn install
- run: yarn lint --no-fix --max-warnings 0 --max-errors 0
build:
name: Build for deployment
needs: [lint]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set short git hash for PR
if: github.event_name == 'pull_request'
id: vars-pr
run: echo "::set-output name=sha_short::$(git rev-parse --short ${{ github.event.pull_request.head.sha }})"
- name: Set short git hash for push
if: github.event_name == 'push'
id: vars-push
run: echo "::set-output name=sha_short::$(git rev-parse --short ${{ github.sha }})"
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 16.x
- run: yarn install
- run: yarn build
env:
VUE_APP_VERSION_BUILD: ${{ steps.vars-pr.outputs.sha_short || steps.vars-push.outputs.sha_short }}
VUE_APP_METRICQ_BACKEND: ${{ secrets.DEPLOYED_METRICQ_BACKEND }}
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
with:
name: webview
path: dist