This repository has been archived by the owner on Feb 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #331 from zowe/fix-324
fix(vault): Address Vault related issues
- Loading branch information
Showing
32 changed files
with
3,985 additions
and
2,234 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
module.exports = { | ||
branches: [ | ||
{ | ||
name: "main", | ||
level: "minor", | ||
}, | ||
{ | ||
name: "v1-lts", | ||
level: "patch", | ||
}, | ||
{ | ||
name: "next", | ||
prerelease: true, | ||
} | ||
], | ||
plugins: [ | ||
[ | ||
"@octorelease/vsce", | ||
{ | ||
ovsxPublish: true, | ||
vscePublish: true, | ||
vsixDir: "dist", | ||
}, | ||
], | ||
[ | ||
"@octorelease/github", | ||
{ | ||
assets: ["dist/*.vsix"], | ||
draftRelease: true, | ||
}, | ||
], | ||
"@octorelease/git", | ||
], | ||
}; |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,101 @@ | ||
name: VSIX | ||
name: Zowe CICS Explorer | ||
on: | ||
push: | ||
branches: [main] | ||
|
||
pull_request: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: Version to be published | ||
required: true | ||
|
||
jobs: | ||
build_vsix: | ||
name: build_vsix | ||
runs-on: ubuntu-latest | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
|
||
timeout-minutes: 60 | ||
|
||
concurrency: | ||
group: ${{ matrix.os }}-node-${{ matrix.node-version }}-ci-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
strategy: | ||
# Continue to run tests on the other systems if one fails | ||
fail-fast: false | ||
matrix: | ||
node-version: [16.x, 18.x] | ||
# order operating systems from best to worst | ||
os: [windows-latest, ubuntu-latest, macos-latest] | ||
|
||
if: (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) && !contains(github.event.head_commit.message, '[ci skip]') | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 14 | ||
registry-url: https://registry.npmjs.org/ | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install Dependencies | ||
run: npm i | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
- name: Lint | ||
run: npm run lint | ||
|
||
# - name: Tests | ||
# run: npm run test | ||
|
||
deploy: | ||
if: github.event_name == 'workflow_dispatch' | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
persist-credentials: false | ||
ref: ${{ github.ref }} | ||
|
||
- name: Use Node.js LTS | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: lts/* | ||
|
||
- run: npm i | ||
|
||
- name: Install VSCE | ||
run: npm i -g vsce | ||
|
||
- name: Package VSIX | ||
run: vsce package | ||
|
||
- name: Update Repo | ||
run: | | ||
git config --global user.name "github-actions[bot]" | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
git add cics-extension-for-zowe* | ||
git commit -s -m "Auto Update VSIX" | ||
git push | ||
run: npm run package | ||
|
||
# - name: Publish to Marketplace | ||
# run: vsce publish -p ${{ secrets.VSCODE_TOKEN }} | ||
|
||
- uses: zowe-actions/octorelease@master | ||
id: octorelease | ||
if: ${{ !contains(github.event.inputs.version, '-SNAPSHOT') }} | ||
env: | ||
GIT_COMMITTER_NAME: ${{ secrets.ZOWE_ROBOT_USER }} | ||
GIT_COMMITTER_EMAIL: ${{ secrets.ZOWE_ROBOT_EMAIL }} | ||
GIT_CREDENTIALS: x-access-token:${{ secrets.ZOWE_ROBOT_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
OVSX_PAT: ${{ secrets.OPENVSX_PUBLISH_TOKEN }} | ||
VSCE_PAT: ${{ secrets.VSCODE_TOKEN }} | ||
with: | ||
config-dir: .github | ||
new-version: ${{ github.event.inputs.version }} | ||
|
||
- name: Create Snapshot Version | ||
if: steps.octorelease.outcome == 'success' | ||
uses: zowe-actions/octorelease/script@master | ||
env: | ||
VERSION_STRING: "%s-SNAPSHOT" | ||
with: | ||
config-dir: .github | ||
script: prepareRelease |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
node_modules/ | ||
out/ | ||
.history/ | ||
logs/ | ||
logs/ | ||
.vscode/*.env | ||
dist/* | ||
!dist/*.md | ||
.vscode-test/ | ||
results/** |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Create a ".env" file with the contents of this file | ||
|
||
# Make sure to get a valid DBus Session Address | ||
# by unlocking the keyring on a terminal, and | ||
# copy the contents of "echo $DBUS_SESSION_BUS_ADDRESS" | ||
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/0/bus |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
## Publication Directory | ||
|
||
When you run `npm package` the resulting applications will be copied here. |
Oops, something went wrong.