Skip to content

Commit

Permalink
(chore): Migrate CI to GitHub Actions (ScoopInstaller#3361)
Browse files Browse the repository at this point in the history
* Delete appveyor.yml

* Create ci.yml

* Update test.ps1

* Update README.md

* Fix repo name

* Update test.ps1
  • Loading branch information
rashil2000 authored Mar 9, 2022
1 parent 51a0160 commit 152ced1
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 42 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Tests

on:
pull_request:
push:
workflow_dispatch:

jobs:
test_powershell:
name: WindowsPowerShell
runs-on: windows-latest
steps:
- name: Checkout Bucket
uses: actions/checkout@v2
with:
fetch-depth: 2
path: 'my_bucket'
- name: Checkout Scoop
uses: actions/checkout@v2
with:
repository: ScoopInstaller/Scoop
path: 'scoop_core'
- name: Init and Test
shell: powershell
run: |
$env:SCOOP_HOME="$(Resolve-Path '.\scoop_core')"
.\scoop_core\test\bin\init.ps1
.\my_bucket\bin\test.ps1
test_pwsh:
name: PowerShell
runs-on: windows-latest
steps:
- name: Checkout Bucket
uses: actions/checkout@v2
with:
fetch-depth: 2
path: 'my_bucket'
- name: Checkout Scoop
uses: actions/checkout@v2
with:
repository: ScoopInstaller/Scoop
path: 'scoop_core'
- name: Init and Test
shell: pwsh
run: |
$env:SCOOP_HOME="$(Resolve-Path '.\scoop_core')"
.\scoop_core\test\bin\init.ps1
.\my_bucket\bin\test.ps1
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Scoop Main [![Build Status](https://ci.appveyor.com/api/projects/status/3i3h4mv47pnda41y?svg=true)](https://ci.appveyor.com/project/r15ch13/scoopinstaller-main "Build Status") [![Excavator](https://github.com/ScoopInstaller/Main/actions/workflows/excavator.yml/badge.svg)](https://github.com/ScoopInstaller/Main/actions/workflows/excavator.yml)
# Scoop Main [![Tests](https://github.com/ScoopInstaller/Main/actions/workflows/ci.yml/badge.svg)](https://github.com/ScoopInstaller/Main/actions/workflows/ci.yml) [![Excavator](https://github.com/ScoopInstaller/Main/actions/workflows/excavator.yml/badge.svg)](https://github.com/ScoopInstaller/Main/actions/workflows/excavator.yml)

Core manifests for [Scoop](https://scoop.sh), the Windows command-line installer. For manifests that fit the [Main criteria](https://github.com/ScoopInstaller/Scoop/wiki/Criteria-for-including-apps-in-the-main-bucket).

Expand Down
39 changes: 0 additions & 39 deletions appveyor.yml

This file was deleted.

5 changes: 3 additions & 2 deletions bin/test.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#requires -Modules @{ ModuleName = 'Pester'; ModuleVersion = '4.4.0' }
#Requires -Modules @{ ModuleName = 'Pester'; MaximumVersion = '4.99' }

if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = Resolve-Path (scoop prefix scoop) }
Invoke-Pester "$psscriptroot/.."
$result = Invoke-Pester "$psscriptroot/.." -PassThru
exit $result.FailedCount

0 comments on commit 152ced1

Please sign in to comment.