-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Elmer Bulthuis
authored
Sep 21, 2023
1 parent
65bda00
commit f1061ae
Showing
17 changed files
with
114 additions
and
121 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
insert_final_newline = true | ||
end_of_line = lf | ||
indent_style = space | ||
indent_size = 4 | ||
max_line_length = 100 |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
on: | ||
push: | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
|
||
publish-crates: | ||
runs-on: ubuntu-latest | ||
container: rust:1.64-alpine3.15 | ||
env: | ||
CARGO_HOME: ${{ github.workspace }}/.cargo | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: apk add cargo-edit | ||
- run: cargo set-version ${GITHUB_REF_NAME:1} | ||
- run: cargo publish --allow-dirty |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
|
||
test-unit: | ||
runs-on: ubuntu-latest | ||
container: rust:1.64-alpine3.15 | ||
env: | ||
CARGO_HOME: ${{ github.workspace }}/.cargo | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: apk add tar | ||
- uses: actions/cache@v3 | ||
with: | ||
key: ${{ github.job }}-${{ hashFiles('Cargo.lock') }} | ||
path: | | ||
.cargo/ | ||
target/ | ||
- run: apk add build-base | ||
- run: cargo test --all-targets | ||
|
||
test-lint: | ||
runs-on: ubuntu-latest | ||
container: rust:1.64-alpine3.15 | ||
env: | ||
CARGO_HOME: ${{ github.workspace }}/.cargo | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: apk add tar | ||
- uses: actions/cache@v3 | ||
with: | ||
key: ${{ github.job }}-${{ hashFiles('Cargo.lock') }} | ||
path: | | ||
.cargo/ | ||
target/ | ||
- run: apk add musl-dev | ||
- run: rustup component add clippy | ||
- run: cargo clippy --all-targets |
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 |
---|---|---|
@@ -1,3 +1,10 @@ | ||
/target | ||
**/*.rs.bk | ||
Cargo.lock | ||
.* | ||
|
||
!.gitignore | ||
!.editorconfig | ||
|
||
/target/ | ||
/coverage/ | ||
|
||
!/.vscode/ | ||
!/.github/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,14 +1,15 @@ | ||
{ | ||
// See http://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations. | ||
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations. | ||
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp | ||
|
||
// List of extensions which should be recommended for users of this workspace. | ||
"recommendations": [ | ||
"rust-lang.rust", | ||
"vadimcn.vscode-lldb" | ||
"rust-lang.rust-analyzer", | ||
"vadimcn.vscode-lldb", | ||
"ryanluker.vscode-coverage-gutters", | ||
"editorconfig.editorconfig", | ||
"tamasfe.even-better-toml" | ||
], | ||
// List of extensions recommended by VS Code that should not be recommended for users of this workspace. | ||
"unwantedRecommendations": [ | ||
|
||
] | ||
} | ||
"unwantedRecommendations": [] | ||
} | ||
|
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 |
---|---|---|
@@ -1,10 +1,9 @@ | ||
// Place your settings in this file to overwrite default and user settings. | ||
{ | ||
"editor.formatOnSave": true, | ||
"editor.rulers": [ | ||
100 | ||
], | ||
"rust.clippy_preference": "on", | ||
"rust.all_targets": true, | ||
"rust-client.channel": "nightly" | ||
} | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll": true, | ||
"source.organizeImports": true | ||
}, | ||
"editor.rulers": [100], | ||
"rust-analyzer.check.command": "clippy" | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,10 +1,3 @@ | ||
# ReduxR - Redux for rust | ||
This repository provides a redux store, with some examples that show how to do redux in rust. | ||
|
||
## Automated tests | ||
Never commit something that breaks the build! You can easily prevent this by linking the `pre-commit` script as a git `pre-commit` hook! | ||
|
||
like this: | ||
```bash | ||
ln pre-commit .git/hooks/pre-commit | ||
``` | ||
This repository provides a redux store, with some examples that show how to do redux in rust. |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json", | ||
"version": "0.2", | ||
"language": "en", | ||
"useGitignore": true, | ||
"enableGlobDot": true, | ||
"words": [ | ||
"reduxr", | ||
"todos" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
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