diff --git a/.github/workflows/cortex-js-quality-gate.yml b/.github/workflows/cortex-js-quality-gate.yml new file mode 100644 index 000000000..bac43fe3f --- /dev/null +++ b/.github/workflows/cortex-js-quality-gate.yml @@ -0,0 +1,25 @@ +name: CI test for cortex-js +on: + pull_request: + paths: + - "cortex-js/**" + - .github/workflows/cortex-js-quality-gate.yml + workflow_dispatch: +jobs: + build-and-publish-plugins: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: "0" + + # Setup .npmrc file to publish to npm + - uses: actions/setup-node@v3 + with: + node-version: "20.x" + registry-url: "https://registry.npmjs.org" + - run: yarn install && yarn build + working-directory: ./cortex-js + - run: yarn test + name: run tests + working-directory: ./cortex-js