forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move more workflows to python (#21581)
move logic for lock issue workflow back to python repo to avoid extra work of checking out and cloning vscode-github-triage-actions repo. Should reduce time it takes to run github actions.
- Loading branch information
1 parent
abcb5ce
commit 6744590
Showing
4 changed files
with
47 additions
and
43 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
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,5 @@ | ||
name: PR files | ||
|
||
on: | ||
pull_request: | ||
types: | ||
|
@@ -15,15 +16,29 @@ jobs: | |
name: 'Check for changed files' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Actions | ||
uses: actions/checkout@v3 | ||
- name: 'package-lock.json matches package.json' | ||
uses: brettcannon/[email protected] | ||
with: | ||
repository: 'microsoft/vscode-github-triage-actions' | ||
ref: stable | ||
path: ./actions | ||
prereq-pattern: 'package.json' | ||
file-pattern: 'package-lock.json' | ||
skip-label: 'skip package*.json' | ||
failure-message: '${prereq-pattern} was edited but ${file-pattern} was not (the ${skip-label} label can be used to pass this check)' | ||
|
||
- name: Install Actions | ||
run: npm install --production --prefix ./actions | ||
- name: 'package.json matches package-lock.json' | ||
uses: brettcannon/[email protected] | ||
with: | ||
prereq-pattern: 'package-lock.json' | ||
file-pattern: 'package.json' | ||
skip-label: 'skip package*.json' | ||
failure-message: '${prereq-pattern} was edited but ${file-pattern} was not (the ${skip-label} label can be used to pass this check)' | ||
|
||
- name: Check for changed files | ||
uses: ./actions/python-pr-file-check | ||
- name: 'Tests' | ||
uses: brettcannon/[email protected] | ||
with: | ||
prereq-pattern: src/**/*.ts | ||
file-pattern: | | ||
src/**/*.test.ts | ||
src/**/*.testvirtualenvs.ts | ||
.github/test_plan.md | ||
skip-label: 'skip tests' | ||
failure-message: 'TypeScript code was edited without also editing a ${file-pattern} file; see the Testing page in our wiki on testing guidelines (the ${skip-label} label can be used to pass this check)' |
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