You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add GitHub action to run tests using swift-syntax-dev-utils
swift-syntax-dev-utils also runs the CodeGeneration and Examples tests. It is also a convenient place where we can enable RawSyntax validation and test fuzzing.
Running this using only the latest Swift version should be sufficient because we don't expect to find differences between versions here and expect contributors to swift-syntax to use the latests released Swift version anyway.
name: Run tests using swift-syntax-dev-utils (Linux)
32
+
runs-on: ubuntu-latest
33
+
container:
34
+
image: swift:latest
35
+
steps:
36
+
- name: Checkout repository
37
+
uses: actions/checkout@v4
38
+
with:
39
+
persist-credentials: false
40
+
- name: Test
41
+
run: "./swift-syntax-dev-utils test --enable-rawsyntax-validation --enable-test-fuzzing --toolchain /usr"
42
+
test_using_swift_syntax_dev_utils_windows:
43
+
name: Run tests using swift-syntax-dev-utils (Windows)
44
+
runs-on: windows-2022
45
+
steps:
46
+
- name: Pull Docker image
47
+
id: pull_docker_image
48
+
run: |
49
+
$Image = "swift:windowsservercore-ltsc2022"
50
+
docker pull $Image
51
+
echo "image=$Image" >> "$env:GITHUB_OUTPUT"
52
+
- name: Checkout repository
53
+
uses: actions/checkout@v4
54
+
with:
55
+
persist-credentials: false
56
+
- name: Test
57
+
run: |
58
+
mkdir $env:TEMP\test-script
59
+
echo @'
60
+
Set-PSDebug -Trace 1
61
+
$SwiftPath = where.exe swift
62
+
swift.exe run --package-path "C:\Source\SwiftSyntaxDevUtils" swift-syntax-dev-utils test --enable-rawsyntax-validation --enable-test-fuzzing --toolchain "$SwiftPath\..\.."
0 commit comments