cmder/.github/workflows/tests.yml

42 lines
972 B
YAML
Raw Normal View History

2022-10-16 04:57:20 +08:00
name: Run Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
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@v3
2022-10-18 20:56:47 +08:00
- name: Initialize vendors
run: |
2022-10-18 21:21:59 +08:00
PowerShell.exe -ExecutionPolicy Bypass -NoLogo -NoProfile -Command "Invoke-Expression '. ''scripts\build.ps1'' -verbose -sourcesPath vendor\sources.json'"
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