Skip to content

Commit

Permalink
More tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfeingold35 committed Aug 28, 2023
1 parent 1d573cc commit 25480b4
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/create-vsix-artifact.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: create-vsix-artifact
on:
workflow_call:

jobs:
build-and-upload:
runs-on: ubuntu-latest
steps:
- name: 'Check out the code'
uses: actions/checkout@v3
- name: 'Set up NodeJS'
uses: actions/setup-node@v3
with:
node-version: 'lts/*' # Node LTS should always be fine.
- name: 'Install node dependencies'
run: yarn
- name: 'Create VSIX'
run: vsce package
- name: 'Upload artifact'
uses: actions/upload-artifact@v3
with:
name: test-vsix
path: ./sfdx-code-analyzer-vscode-*.vsix




6 changes: 6 additions & 0 deletions .github/workflows/validate-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: validate-pr
on:
pull_request:
types: [edited, opened, reopened, synchronize]
push:
branches:
- main

jobs:
# We need to verify that the Pull Request's title matches the desired format.
Expand All @@ -18,3 +21,6 @@ jobs:
# Separately, we also need to run our tests
run_tests:
uses: ./.github/workflows/run-tests.yml
# Additionally, build a VSIX that can be downloaded by the user if needed.
create-vsix-artifact:
uses: ./.github/workflows/create-vsix-artifact.yml

0 comments on commit 25480b4

Please sign in to comment.