Skip to content

Commit

Permalink
Merge pull request #2 from Logflare/chore/add-org-scope
Browse files Browse the repository at this point in the history
Chore/add org scope
  • Loading branch information
Ziinc authored Oct 9, 2023
2 parents 9ca1060 + 0f353e2 commit bfc41be
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 11 deletions.
44 changes: 36 additions & 8 deletions .github/workflows/js-tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: JS Unit Tests
name: JS CI

on:
workflow_dispatch:
Expand All @@ -7,27 +7,55 @@ on:
paths:
- logflare-js/**



defaults:
run:
working-directory: apps/logflare_js/priv

working-directory: logflare-js

jobs:
build:
unit_tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x]
node-version: [16.x, 18.x, 20.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
- run: npm ci
# use experiemntal node option for 16.x
- run: NODE_OPTIONS=--experimental-fetch npm run test
if: matrix.node-version == '16.x'
- run: npm run test
if: matrix.node-version != '16.x'

build_check:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x, 20.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
run: npm run build
4 changes: 2 additions & 2 deletions logflare-js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion logflare-js/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "logflare-js",
"name": "@logflare/logflare-js",
"version": "0.1.0",
"description": "Logflare JS SDK",
"scripts": {
Expand Down

0 comments on commit bfc41be

Please sign in to comment.