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)
20
+
runs-on: ubuntu-latest
21
+
container:
22
+
image: swift:latest
23
+
steps:
24
+
- name: Checkout repository
25
+
uses: actions/checkout@v4
26
+
with:
27
+
persist-credentials: false
28
+
- name: Test
29
+
run: "./swift-syntax-dev-utils test --enable-rawsyntax-validation --enable-test-fuzzing --toolchain /usr"
30
+
test_using_swift_syntax_dev_utils_windows:
31
+
name: Run tests using swift-syntax-dev-utils (Windows)
32
+
runs-on: windows-2022
33
+
steps:
34
+
- name: Pull Docker image
35
+
id: pull_docker_image
36
+
run: |
37
+
$Image = "swift:windowsservercore-ltsc2022"
38
+
docker pull $Image
39
+
echo "image=$Image" >> "$env:GITHUB_OUTPUT"
40
+
- name: Checkout repository
41
+
uses: actions/checkout@v4
42
+
with:
43
+
persist-credentials: false
44
+
- name: Test
45
+
run: |
46
+
mkdir $env:TEMP\test-script
47
+
echo @'
48
+
Set-PSDebug -Trace 1
49
+
50
+
$SwiftPath = where.exe swift
51
+
swift.exe run --package-path "C:\Source\SwiftSyntaxDevUtils" swift-syntax-dev-utils test --enable-rawsyntax-validation --enable-test-fuzzing --toolchain "$SwiftPath\..\.."
0 commit comments