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
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+26-14Lines changed: 26 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,28 +56,40 @@ 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/apple/swift-openapi-runtime/blob/main/scripts/soundness.sh)
62
-
that enforces additional checks, like license headers and formatting style.
61
+
You can run the Github Actions workflows locally using
62
+
[act](https://github.com/nektos/act). To run all the jobs that run on a pull
63
+
request, use the following command:
63
64
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.
65
+
```
66
+
% act pull_request
67
+
```
66
68
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:
69
+
To run just a single job, use `workflow_call -j <job>`, and specify the inputs
70
+
the job expects. For example, to run just shellcheck:
0 commit comments