Initial commit

This commit is contained in:
Jonas8272 authored and GitHub committed 2026-11-21 02:06:45 +08:00
commit eb10040893
28 files changed
+557

No files matched your search

+44
View File
@@ -0,0 +1,44 @@
name: CI
on:
push:
branches:
- 'main'
- 'master'
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
test:
name: Test
runs-on: windows-latest
strategy:
matrix:
shell: [powershell, pwsh]
defaults:
run:
shell: ${{ matrix.shell }}
steps:
- name: Checkout Bucket
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
# Need at least 2 commits to properly gather changed files for linting
fetch-depth: 2
path: 'my_bucket'
- name: Checkout Scoop
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: ScoopInstaller/Scoop
path: 'scoop_core'
- name: Install and cache test dependencies
uses: potatoqualitee/psmodulecache@9e4b63833c22c1768d648e115a9c849afdda22a5 # v6.3
with:
modules-to-cache: BuildHelpers, Pester
shell: ${{ matrix.shell }}
- name: Run tests
run: |
$env:SCOOP_HOME="$(Convert-Path '.\scoop_core')"
.\my_bucket\bin\test.ps1
+22
View File
@@ -0,0 +1,22 @@
name: Excavator
on:
workflow_dispatch:
schedule:
# run every 4 hours
- cron: '20 */4 * * *'
permissions:
contents: write
jobs:
excavate:
name: Excavate
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Excavate
uses: ScoopInstaller/GithubActions@5bceeda181721d9d10a18fdcc3ddca6f33467ae6 # v3.0.0
env:
SKIP_UPDATED: 1
+21
View File
@@ -0,0 +1,21 @@
name: Issues
on:
issues:
types: [opened, labeled]
permissions:
# Auto hash fixing commits
contents: write
issues: write
jobs:
issueHandler:
name: Issue Handler
if: github.event.action == 'opened' || (github.event.action == 'labeled' && contains(github.event.issue.labels.*.name, 'verify'))
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Run Issue Handler
uses: ScoopInstaller/GithubActions@5bceeda181721d9d10a18fdcc3ddca6f33467ae6 # v3.0.0
+22
View File
@@ -0,0 +1,22 @@
name: Pull Requests
on:
pull_request:
types: [opened]
issue_comment:
types: [created]
permissions:
contents: read
pull-requests: write
jobs:
pullRequestHandler:
name: Pull Request Handler
if: github.event_name == 'pull_request' || (github.event.issue.pull_request && startsWith(github.event.comment.body, '/verify'))
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Run Pull Request Handler
uses: ScoopInstaller/GithubActions@5bceeda181721d9d10a18fdcc3ddca6f33467ae6 # v3.0.0