mirror of
https://github.com/ScoopInstaller/Java.git
synced 2026-08-12 06:16:26 +08:00
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
repository: ScoopInstaller/Scoop
|
|
ref: 'develop'
|
|
path: 'scoop_core'
|
|
- name: Install and cache test dependencies
|
|
uses: potatoqualitee/psmodulecache@ee5e9494714abf56f6efbfa51527b2aec5c761b8 # v6.2.1
|
|
with:
|
|
modules-to-cache: BuildHelpers, Pester
|
|
shell: ${{ matrix.shell }}
|
|
- name: Run tests
|
|
run: |
|
|
$env:SCOOP_HOME="$(Resolve-Path '.\scoop_core')"
|
|
.\my_bucket\bin\test.ps1
|