Skip to content

Query Editor (NoSQL + Mongo) #78

Query Editor (NoSQL + Mongo)

Query Editor (NoSQL + Mongo) #78

Workflow file for this run

name: Node PR Lint, Build and Test
on:
# Trigger when manually run
workflow_dispatch:
# Trigger on pushes to `main` or `rel/*`
push:
branches:
- main
- rel/*
# Trigger on pull requests to `main` or `rel/*`
pull_request:
branches:
- main
- rel/*
jobs:
Build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: '.'
steps:
# Setup
- uses: actions/checkout@v3
- name: Using Node.js
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
- run: npm ci
# Lint
- run: npm run lint
# Prettier
- run: npm run prettier
# Compile (tsc)
- run: npm run build
# Package (vsce)
- run: npm run package
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: Artifacts
path: |
**/*.vsix
**/*.tgz
!**/node_modules
# Test
- run: xvfb-run -a npm test