40 lines
919 B
YAML
40 lines
919 B
YAML
name: Windows
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
windows:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Setup
|
|
uses: compnerd/gha-setup-swift@v0.3.0
|
|
with:
|
|
branch: swift-5.10-release
|
|
tag: 5.10-RELEASE
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v4.2.2
|
|
|
|
- name: Test
|
|
run: swift test -c release --parallel --xunit-output .build/xUnit-output.xml
|
|
|
|
- name: Upload test artifacts
|
|
if: failure()
|
|
uses: actions/upload-artifact@v4.6.1
|
|
with:
|
|
name: test-artifacts-windows-${{ github.run_id }}
|
|
path: |
|
|
.build/*.yaml
|
|
.build/*.xml
|
|
.build/*.json
|
|
.build/*.txt
|
|
.build/**/*.xctest
|
|
.build/**/*.json
|
|
.build/**/*.txt
|
|
if-no-files-found: warn
|
|
include-hidden-files: true
|