Skip to content

Commit 9962564

Browse files
committed
[CI] GitHub Actions support
1 parent d8e7670 commit 9962564

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/pull_request.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Pull request
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, synchronize]
6+
7+
jobs:
8+
soundness:
9+
name: Soundness
10+
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
11+
with:
12+
# https://github.com/swiftlang/github-workflows/issues/48
13+
license_header_check_enabled: false
14+
license_header_check_project_name: "VS Code Swift"
15+
api_breakage_check_enabled: false
16+
docs_check_enabled: false
17+
format_check_enabled: false
18+
# https://github.com/swiftlang/vscode-swift/issues/1162
19+
shell_check_enabled: false
20+
# https://github.com/swiftlang/vscode-swift/issues/1161
21+
unacceptable_language_check_enabled: false
22+
23+
tests:
24+
name: Test
25+
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main
26+
with:
27+
linux_env_vars: |
28+
NODE_VERSION=v18.19.0
29+
NODE_PATH=/usr/local/nvm/versions/node/v18.19.0/bin
30+
NVM_DIR=/usr/local/nvm
31+
CI=1
32+
FAST_TEST_RUN=1
33+
linux_pre_build_command: |
34+
apt-get update && apt-get install -y rsync curl gpg libasound2 libgbm1 libgtk-3-0 libnss3 xvfb build-essential
35+
mkdir -p $NVM_DIR
36+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
37+
/bin/bash -c "source $NVM_DIR/nvm.sh && nvm install $NODE_VERSION"
38+
echo "$NODE_PATH" >> $GITHUB_PATH
39+
linux_build_command: ./docker/test.sh
40+
enable_windows_checks: false

0 commit comments

Comments
 (0)