Skip to content

Chore/add org scope

Chore/add org scope #2

Workflow file for this run

name: JS CI
on:
workflow_dispatch:
pull_request:
branches: ["main"]
paths:
- logflare-js/**
defaults:
run:
working-directory: apps/logflare_js/priv
jobs:
unit_tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x]
steps:
- uses: actions/checkout@v2
- name: Setup node ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Restore caches
uses: actions/cache/restore@v3
with:
path: |
logflare-js/node_modules
key: ${{ runner.os }}-${{matrix.node-version }}-npm
- name: Install deps
run: npm ci
- name: Build
run: npm run test
build_check:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x]
steps:
- uses: actions/checkout@v2
- name: Setup node ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Restore caches
uses: actions/cache/restore@v3
with:
path: |
logflare-js/node_modules
key: ${{ runner.os }}-${{matrix.node-version }}-npm
- name: Install deps
run: npm ci
- name: Build
run: npm run build