Skip to content

Configure Sweep

Configure Sweep #14

Workflow file for this run

name: Tests
on:
push:
branches:
- 'main'
- 'master'
pull_request:
workflow_dispatch:
jobs:
prettier:
name: Format Code
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
# Full git history is needed to get a proper list of changed files within `auto-formatter`
fetch-depth: 0
ref: ${{ github.head_ref }}
# Make sure the value of GITHUB_TOKEN will not be persisted in repo's config
persist-credentials: false
- name: Prettify code
uses: creyD/[email protected]
with:
# This part is also where you can pass other options, for example:
prettier_options: --write **/*.{json}
test_powershell:
name: WindowsPowerShell
runs-on: windows-latest
steps:
- name: Checkout Bucket
uses: actions/checkout@main
with:
fetch-depth: 2
path: my_bucket
- name: Checkout Scoop
uses: actions/checkout@main
with:
repository: ScoopInstaller/Scoop
path: scoop_core
- name: Init Test Suite
uses: potatoqualitee/[email protected]
with:
modules-to-cache: BuildHelpers
shell: powershell
- name: Test Bucket
shell: powershell
run: |
$env:SCOOP_HOME="$(Convert-Path '.\scoop_core')"
.\my_bucket\bin\test.ps1