Skip to content

Bump json5 from 1.0.1 to 1.0.2 in /pmm-app #1453

Bump json5 from 1.0.1 to 1.0.2 in /pmm-app

Bump json5 from 1.0.1 to 1.0.2 in /pmm-app #1453

Workflow file for this run

name: Test pipeline
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: percona-platform/checkout@v2
- name: Run with Node 16
uses: percona-platform/setup-node@v2
with:
node-version: "16"
- name: Get Yarn cache directory
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- name: Use Yarn cache
uses: percona-platform/cache@v2
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-16-${{ hashFiles('**/yarn.lock') }}
- name: Install deps
run: make prepare_release
- name: Build Grafana Dashboards
run: make build_package
- name: Upload the build artefacts
uses: percona-platform/upload-artifact@v2
with:
name: build-dist
path: pmm-app/dist/
if-no-files-found: error
code_coverage:
needs: build
runs-on: ubuntu-latest
steps:
- uses: percona-platform/checkout@v2
- name: Setup NodeJS
uses: percona-platform/setup-node@v2
with:
node-version: "16"
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_GRAFANA_DASHBOARDS_TOKEN }}
- name: Download built packages
uses: percona-platform/download-artifact@v2
with:
name: build-dist
path: pmm-app/dist/
- name: Install deps
run: make prepare_release
- name: Generate Coverage
run: make generate_coverage
workflow_success:
needs: [code_coverage, build]
name: Slack Notification success
runs-on: ubuntu-latest
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_TOKEN }}
SLACK_CHANNEL: "pmm-ci"
SLACK_USERNAME: "PR pipelines bot"
SLACK_ICON_EMOJI: ":chestnut:"
SLACK_COLOR: "#00FF00"
SLACK_TITLE: "Finished grafana-dashboards workflow"
SLACK_MESSAGE: "${{ github.event.inputs.repo || github.repository }}:${{ github.event.inputs.branch || github.head_ref }}"
SLACK_FOOTER: "Please check the Actions URL ^"
steps:
- uses: percona-platform/checkout@v2
- uses: percona-platform/setup-node@v2
- name: Slack Notification
uses: percona-platform/action-slack-notify@v2
workflow_failure:
if: ${{ failure() }}
needs: [code_coverage, build]
name: Slack Notification failure
runs-on: ubuntu-latest
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_TOKEN }}
SLACK_CHANNEL: "pmm-ci"
SLACK_USERNAME: "PR pipelines bot"
SLACK_ICON_EMOJI: ":chestnut:"
SLACK_COLOR: "#FF0000"
SLACK_TITLE: "Finished grafana-dashboards workflow"
SLACK_MESSAGE: "Workflow failed: ${{ github.event.inputs.repo || github.repository }}:${{ github.event.inputs.branch || github.head_ref }}"
SLACK_FOOTER: "Please check the Actions URL ^"
steps:
- uses: percona-platform/checkout@v2
- name: Slack Notification
uses: percona-platform/action-slack-notify@v2