Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,23 @@ jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 14
registry-url: https://registry.npmjs.org/
node-version: latest
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Package JSON Info
uses: myrotvorets/info-from-package-json-action@1.1.0
id: pkgjson
run: echo "packageVersion=$(jq -r .version package.json)" >> "$GITHUB_OUTPUT"

- name: Generate docs
run: node sdkdo docs

- name: Upload Artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: js_sdk_docs
path: docs-${{ steps.pkgjson.outputs.packageVersion }}/
42 changes: 18 additions & 24 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,42 @@
name: Node.js CI

on: [push, pull_request]
on: [push]

jobs:
build:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest

strategy:
matrix:
os:
- ubuntu-latest
node:
- 14
- 8.17.0
splunk-version:
- "8.2"
- "latest"
splunk-version: ["8.2", "latest"]

services:
splunk:
image: splunk/splunk:${{matrix.splunk-version}}
image: splunk/splunk:${{ matrix.splunk-version }}
env:
SPLUNK_START_ARGS: --accept-license
SPLUNK_GENERAL_TERMS: --accept-sgt-current-at-splunk-com
SPLUNK_HEC_TOKEN: 11111111-1111-1111-1111-1111111111113
SPLUNK_PASSWORD: changed!
SPLUNK_APPS_URL: https://github.com/splunk/sdk-app-collection/releases/download/v1.1.0/sdkappcollection.tgz
ports:
- 8000:8000
- 8088:8088
- 8089:8089
- "8000:8000"
- "8088:8088"
- "8089:8089"
httpbin:
image: mccutchen/go-httpbin@sha256:873b4fdb27fe7cc66fa12cb9362574e1b0bf31df7ca8a71b2502988327a0b8a4
ports:
- "8080:8080"

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Use node ${{ matrix.node }}
uses: actions/setup-node@v2
- name: Setup node
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ${{ matrix.node }}
node-version: latest

- name: Run npm install
run: npm ci
- name: Create .splunkrc file
run: |
cd ~
Expand All @@ -48,13 +47,8 @@ jobs:
echo scheme=https >> .splunkrc
echo version=${{ matrix.splunk }} >> .splunkrc

- name: Run npm install
run: npm install

- name: Run make test
run: make test
env:
SPLUNK_HOME: /opt/splunk
fossa-scan:
uses: splunk/oss-scanning-public/.github/workflows/oss-scan.yml@main
secrets: inherit
13 changes: 7 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
build/
client/
.git
tests/html/*
*.out
*DS_Store
*.sublime-*
*.pyc
.idea/*
npm-debug.log
server.py
*.log
.buildcache
v8.log
cover_html
.coverage_data
.coverage_debug
*.swp
.splunkrc
.env
*.zip
test_logs/*
docs/
.nyc_output/*
/node_modules/*
.nyc_output/
node_modules/
.vscode/
.code-workspace
Loading
Loading