add workflows

fix
master
beyondmeat 2022-03-07 17:25:41 -07:00 committed by Hugo Locurcio
parent f50d309519
commit c32e924a65
6 changed files with 94 additions and 0 deletions

28
.github/pull_request_template.md vendored Normal file
View File

@ -0,0 +1,28 @@
<!-- Provide a general summary of your changes in the title above -->
<!--
By opening this PR you confirm that will follow the contribution guidelines. You agree to submit a fully featured working manifest that creates shortcuts, bin shims, persists data, enable portable mode, and auto updates.
-->
[ ] I have read the [Contributing Guide](../CONTRIBUTING.md).
## What package release type is this?
- [ ] stable
- [ ] beta
- [ ] dev
- [ ] nightly/canary
- [ ] properly named and capitalized shortcuts?
- [ ] autoupdate and checkver entry [](https://github.com/ScoopInstaller/Scoop/wiki/App-Manifest-Autoupdate)
- [ ] [persist](https://github.com/ScoopInstaller/Scoop/wiki/Persistent-data) defined with config/data/user/portable/textures/saves folder(s) specific for the app?
- [ ] a [pre_install](https://github.com/ScoopInstaller/Scoop/wiki/Pre--and-Post-install-scripts) script to auto-enable portable mode (if needed)?
- [ ] script pre-creates generated files listed in persist? (solves linking issue with generated files that need to be persisted)
- [ ] license identifier and url
- [ ] a short terse description matching existing style.
- [ ] url to the release along with its sha256 hash
- [ ] bin entries
- [ ] if beta, dev, nightly, canary, etc: does bin have rewrite with variant appended to the name?
- [ ] I tested the package and it runs in portable mode. I have verified the symlinks are correct in the persists folder.
- [ ] I will maintain this manifest and promptly fix it in the event it breaks.
- [ ] passes `bin/checkver.ps1` and `bin/checkurls.ps1`
- [ ] tested install, checked persist, no errors.

15
.github/workflows/issue_comment.yml vendored Normal file
View File

@ -0,0 +1,15 @@
on:
issue_comment:
types: [ created ]
name: Commented Pull Request
jobs:
pullRequestHandler:
name: PullRequestHandler
runs-on: windows-latest
steps:
- uses: actions/checkout@main
- name: PullRequestHandler
uses: ScoopInstaller/GithubActions@main
if: startsWith(github.event.comment.body, '/verify')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

15
.github/workflows/issues.yml vendored Normal file
View File

@ -0,0 +1,15 @@
on:
issues:
types: [ opened, labeled ]
name: Issues
jobs:
issueHandler:
name: IssueHandler
runs-on: windows-latest
steps:
- uses: actions/checkout@main
- name: IssueHandler
uses: ScoopInstaller/GithubActions@main
if: github.event.action == 'opened' || (github.event.action == 'labeled' && contains(github.event.issue.labels.*.name, 'verify'))
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

14
.github/workflows/pull_request.yml vendored Normal file
View File

@ -0,0 +1,14 @@
on:
pull_request:
types: [ opened ]
name: Pull Requests
jobs:
pullRequestHandler:
name: PullRequestHandler
runs-on: windows-latest
steps:
- uses: actions/checkout@main
- name: PullRequestHandler
uses: ScoopInstaller/GithubActions@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

21
.vscode/settings.json vendored
View File

@ -1,4 +1,24 @@
// Configure PSScriptAnalyzer settings
{
"[powershell]": {
"editor.formatOnSave": true
},
"powershell.scriptAnalysis.settingsPath": "PSScriptAnalyzerSettings.psd1",
"powershell.codeFormatting.preset": "OTBS",
"powershell.codeFormatting.alignPropertyValuePairs": true,
"powershell.codeFormatting.ignoreOneLineBlock": true,
"json.schemas": [
{
"url": "https://raw.githubusercontent.com/scoopinstaller/scoop/master/schema.json",
"fileMatch": [
"bucket/*.json"
]
}
],
"files.exclude": {
"**/.git": true,
"**/.DS_Store": true
},
"cSpell.words": [
"appdata",
"autoupdate",
@ -10,6 +30,7 @@
"citra",
"createconfig",
"ctrlr",
"Famicom",
"hermanjustnu",
"HOMEDRIVE",
"HOMEPATH",

View File

@ -1,3 +1,4 @@
#requires -Modules @{ ModuleName = 'Pester'; ModuleVersion = '4.4.0' }
if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = Resolve-Path (scoop prefix scoop) }
Invoke-Pester "$psscriptroot/.."