Skip to content

Update ci.yml

Update ci.yml #18

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: ESlint
uses: stefanoeb/[email protected]
with:
files: --write dlp-cli.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