Skip to content
Open
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Test Connection
HOST=
USER=
PASSWORD=
47 changes: 47 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Test

on:
workflow_dispatch:

push:
branches: ["main"]

pull_request:
branches: ["main"]


env:
HOST: ${{ secrets.HOST }}
USER: ${{ secrets.USER }}
PASSWORD: ${{ secrets.PASSWORD }}

jobs:
build:
name: Test

runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
node-version: [18.x]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install NPM Dependencies
run: npm install

- name: Run Test (${{ matrix.os }})
run: xvfb-run -a npm test
if: runner.os == 'Linux'

- name: Run Test (${{ matrix.os }})
run: npm test
if: runner.os != 'Linux'
2 changes: 2 additions & 0 deletions .github/workflows/webpack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:

jobs:
build:
name: Webpack

runs-on: ubuntu-latest

strategy:
Expand Down
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
node_modules
dist
out
.DS_Store
*.vsix
*.vsix
.vscode-test
.env
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "src/test/testFixtures/ibmi-company_system"]
path = src/test/testFixtures/ibmi-company_system
url = https://github.com/IBM/ibmi-company_system.git
9 changes: 5 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"--extensionDevelopmentPath=${workspaceFolder}"
],
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
"${workspaceFolder}/out/**/*.js"
],
"preLaunchTask": "npm: compile"
},
Expand All @@ -22,13 +22,14 @@
"type": "extensionHost",
"request": "launch",
"args": [
"${workspaceFolder}/out/test/testFixtures/ibmi-company_system",
"--extensionDevelopmentPath=${workspaceFolder}"
],
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
],
"${workspaceFolder}/out/**/*.js"
],
"sourceMaps": true,
"preLaunchTask": "npm: compile",
"preLaunchTask": "npm: compile-tests",
"env": {
"testing": "true"
}
Expand Down
2 changes: 2 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ src/**
.gitignore
.gitmodules
.yarnrc
.env
.env.sample
webpack.config.js
vsc-extension-quickstart.md
**/tsconfig.json
Expand Down
Loading