Chore/add org scope #2
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: 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 |