mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-06 00:23:20 +00:00
chk platform
This commit is contained in:
31
.github/workflows/ci.yml
vendored
31
.github/workflows/ci.yml
vendored
@@ -7,20 +7,31 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
validate:
|
validate:
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
# os: [windows-latest]
|
|
||||||
# os: [windows-latest, ubuntu-latest]
|
|
||||||
# os: [windows-latest, ubuntu-latest, macos-latest]
|
# os: [windows-latest, ubuntu-latest, macos-latest]
|
||||||
os: [ubuntu-latest]
|
os: [windows-latest, ubuntu-latest]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- name: Run Continuous Integration
|
- name: Run Tests
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run : |
|
run : |
|
||||||
# ./ContinuousIntegration/ContinuousIntegration.ps1
|
# ./ContinuousIntegration/ContinuousIntegration.ps1
|
||||||
sudo apt-get -y update && apt-get install -y --no-install-recommends libgdiplus libc6-dev
|
# sudo apt-get -y update && apt-get install -y --no-install-recommends libgdiplus libc6-dev
|
||||||
cd ./__tests__
|
# cd ./__tests__
|
||||||
Invoke-Pester -Output Detailed
|
# Invoke-Pester -Output Detailed
|
||||||
|
if($PSVersionTable.Platform -eq 'Win32NT') {
|
||||||
|
"start process"
|
||||||
|
} elseif ($PSVersionTable.Platform -eq 'Unix') {
|
||||||
|
"curl"
|
||||||
|
}
|
||||||
|
|
||||||
|
# runs-on: windows-latest
|
||||||
|
# steps:
|
||||||
|
# - uses: actions/checkout@v1
|
||||||
|
# - name: Run Tests on Windows
|
||||||
|
# shell: pwsh
|
||||||
|
# run : |
|
||||||
|
# cd ./__tests__
|
||||||
|
# Invoke-Pester -Output Detailed
|
||||||
Reference in New Issue
Block a user