plugin: Init prometheus plugin #63
Workflow file for this run
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
name: Headlamp plugin linting, type checking, and testing | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
HEADLAMP_PLUGIN_VERSION: 0.6.0-alpha.27 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./ | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npx @kinvolk/headlamp-plugin@$HEADLAMP_PLUGIN_VERSION format --check . | |
- run: npx @kinvolk/headlamp-plugin@$HEADLAMP_PLUGIN_VERSION lint . | |
- run: npx @kinvolk/headlamp-plugin@$HEADLAMP_PLUGIN_VERSION build . | |
# TODO: re-enable when tests are added | |
# - run: npx @kinvolk/headlamp-plugin@$HEADLAMP_PLUGIN_VERSION test . | |
- run: npx @kinvolk/headlamp-plugin@$HEADLAMP_PLUGIN_VERSION tsc . |