Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Release/8.11.3

Release/8.11.3 #378

Workflow file for this run

name: "Test & Coverage"
on: [push, pull_request]
jobs:
test_and_coverage:
name: "Test & Coverage"
runs-on: ubuntu-latest
permissions: write-all
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
with:
repository: elastic/kibana
ref: refs/heads/main
- uses: actions/checkout@v2
with:
name: pjhampton/kibana-prometheus-exporter
ref: refs/heads/main
path: 'plugins/kibana-prometheus-exporter'
- name: Install workflow dependencies
run: sudo apt-get install -y jq
- name: Read .nvmrc
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
id: nvm
- name: Use Node.js (.nvmrc)
uses: actions/setup-node@v1
with:
node-version: "${{ steps.nvm.outputs.NVMRC }}"
- name: Set up Kibana development environment
run: yarn kbn bootstrap
- name: Install plugin dependencies
working-directory: plugins/kibana-prometheus-exporter
run: yarn install
- name: Run tests
working-directory: plugins/kibana-prometheus-exporter
run: yarn test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}