cmder/.github/workflows/tests.yml

53 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2022-10-16 04:57:20 +08:00
name: Run Tests
on:
push:
branches:
- master
paths-ignore:
- '**/*.md'
- '**/*.txt'
- '.github/**'
- '**/.gitignore'
2022-10-16 04:57:20 +08:00
pull_request:
branches:
- master
paths-ignore:
- '**/*.md'
- '**/*.txt'
- '.github/**'
- '**/.gitignore'
2022-10-18 19:50:35 +08:00
2022-10-16 04:57:20 +08:00
defaults:
run:
shell: cmd
2022-10-18 19:50:35 +08:00
2022-10-16 04:57:20 +08:00
permissions:
contents: read
2022-10-18 19:50:35 +08:00
2022-10-16 04:57:20 +08:00
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
tests:
runs-on: windows-latest
continue-on-error: false
steps:
- uses: actions/checkout@v4
2022-10-18 20:56:47 +08:00
- name: Initialize vendors
2022-10-18 21:24:26 +08:00
shell: pwsh
working-directory: scripts
run: .\build.ps1 -verbose
2022-10-16 05:03:31 +08:00
- name: Testing Clink Shell
run: |
2022-10-18 19:50:35 +08:00
cmd /c vendor\init.bat /v /d /t
2022-10-16 05:03:31 +08:00
- name: Testing PowerShell
run: |
PowerShell.exe -ExecutionPolicy Bypass -NoLogo -NoProfile -Command "Invoke-Expression '. ''vendor\profile.ps1'''"
- name: Testing Bash
run: |
2022-10-16 04:57:20 +08:00
bash vendor/cmder.sh