Skip to content

Commit

Permalink
Merge pull request #22 from guitarrapc/feature/use_scoopsetup
Browse files Browse the repository at this point in the history
feat: use scoop-setup
  • Loading branch information
guitarrapc authored May 29, 2023
2 parents a421901 + a09ce47 commit ea041c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: windows-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install Modules
shell: pwsh
run: |
Expand All @@ -26,14 +26,9 @@ jobs:
run: |
Invoke-ScriptAnalyzer -Path ./src -Settings ./PSScriptAnalyzerSettings.psd1 -Severity Warning
Invoke-ScriptAnalyzer -Path ./src/ScoopPlaybook.psm1 -Settings CodeFormatting
# Actions shell is Administartor. see https://github.com/ScoopInstaller/Install#for-admin
# Need install scoop in same run of Invoke-Pester.
- name: Run Unit Test
shell: pwsh
- uses: MinoruSekine/setup-scoop@main # use @main to fix. see https://github.com/MinoruSekine/setup-scoop/issues/7
- name: Test Scoop installed
run: |
iwr -useb get.scoop.sh -outfile 'install.ps1'
.\install.ps1 -RunAsAdmin
scoop
echo "* Show Scoop version"
scoop --version
echo "* Show Scoop buckets"
Expand All @@ -42,5 +37,8 @@ jobs:
scoop list
echo "* Install git"
scoop install git
- name: Run Unit Test
shell: pwsh
run: |
echo "* Begin test"
Invoke-Pester -CI
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
shell: bash
env:
REF: ${{ github.ref }}
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: . ./publish.ps1 -Version $env:GIT_TAG
shell: pwsh
- uses: actions/upload-artifact@v2
Expand Down

0 comments on commit ea041c7

Please sign in to comment.