This repository was archived by the owner on Nov 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow re-use of the CI workflow (#24)
* Allow re-use of the CI workflow * Update README.md
- Loading branch information
1 parent
eb5a0ca
commit a31fc3e
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,40 @@ A reference for GitHub Action workflows to use on Rust projects: | |
|
||
Copy, paste and hack away. | ||
|
||
## Usage | ||
|
||
You either base your own workflows on these by copy & paste _or_ you can call them from your workflow directly. | ||
|
||
Here is how you can **re-use** the existing **continuous integration** workflow right away: | ||
|
||
```yaml | ||
--- | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
paths-ignore: | ||
- 'docs/**' | ||
- '**.md' | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
paths-ignore: | ||
- 'docs/**' | ||
- '**.md' | ||
|
||
jobs: | ||
rust-workflows-ci: | ||
name: CI | ||
uses: hendrikmaus/rust-workflows/.github/workflows/[email protected] | ||
|
||
``` | ||
|
||
## License | ||
|
||
This project is released under the terms of the [MIT](https://opensource.org/licenses/MIT) license. |