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
Migrate CI to use GitHub Actions.
Motivation:
To migrate to GitHub actions and centralised infrastructure.
Modifications:
Changes of note:
* Adopt swiftlang soundness checks, swift version matrix
* Remove scripts and docker files which are no longer needed
Result:
Feature parity with old CI.
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+3-21Lines changed: 3 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,28 +56,10 @@ A good patch is:
56
56
3. Documented, adding API documentation as needed to cover new functions and properties.
57
57
4. Accompanied by a great commit message, using our commit message template.
58
58
59
-
### Run `./scripts/soundness.sh`
59
+
### Run CI checks locally
60
60
61
-
The scripts directory contains a [soundness.sh script](https://github.com/swift-server/swift-openapi-async-http-client/blob/main/scripts/soundness.sh)
62
-
that enforces additional checks, like license headers and formatting style.
63
-
64
-
Please make sure to `./scripts/soundness.sh` before pushing a change upstream, otherwise it is likely the PR validation will fail
65
-
on minor changes such as a missing `self.` or similar formatting issues.
66
-
67
-
For frequent contributors, we recommend adding the script as a [git pre-push hook](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks), which you can do via executing the following command in the project root directory:
68
-
69
-
```bash
70
-
cat <<EOF > .git/hooks/pre-push
71
-
72
-
if [[ -f "scripts/soundness.sh" ]]; then
73
-
scripts/soundness.sh
74
-
fi
75
-
EOF
76
-
```
77
-
78
-
Which makes the script execute, and only allow the `git push` to complete if the check has passed.
79
-
80
-
In the case of formatting issues, you can then `git add` the formatting changes, and attempt the push again.
61
+
You can run the GitHub Actions workflows locally using
62
+
[act](https://github.com/nektos/act). For detailed steps on how to do this please see [https://github.com/swiftlang/github-workflows?tab=readme-ov-file#running-workflows-locally](https://github.com/swiftlang/github-workflows?tab=readme-ov-file#running-workflows-locally).
0 commit comments