Compare commits
4 commits
5ce67a449d
...
591bc54515
| Author | SHA1 | Date | |
|---|---|---|---|
| 591bc54515 | |||
| 59668b1b38 | |||
| c992711ab3 | |||
| 4ccdb389ac |
9 changed files with 52 additions and 5 deletions
|
|
@ -2,15 +2,23 @@
|
||||||
|
|
||||||
## [unreleased]
|
## [unreleased]
|
||||||
|
|
||||||
|
### Miscellaneous Tasks
|
||||||
|
|
||||||
|
- Add git hooks
|
||||||
|
|
||||||
|
## [0.2.2] - 2023-11-10
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
||||||
- Docker build ([#24](https://oolong.ludwig.dog/pitbuster/huellas/issues/24))
|
- Docker build ([#24](https://oolong.ludwig.dog/pitbuster/huellas/issues/24))
|
||||||
|
- Fix GMaps links and do some dependencies maintainance ([#32](https://oolong.ludwig.dog/pitbuster/huellas/issues/32))
|
||||||
|
|
||||||
### Miscellaneous Tasks
|
### Miscellaneous Tasks
|
||||||
|
|
||||||
- Add docker-compose.yml file for testing ([#25](https://oolong.ludwig.dog/pitbuster/huellas/issues/25))
|
- Add docker-compose.yml file for testing ([#25](https://oolong.ludwig.dog/pitbuster/huellas/issues/25))
|
||||||
- Update sqlx offline files ([#28](https://oolong.ludwig.dog/pitbuster/huellas/issues/28))
|
- Update sqlx offline files ([#28](https://oolong.ludwig.dog/pitbuster/huellas/issues/28))
|
||||||
- Update rust version in docker to 1.71 ([#29](https://oolong.ludwig.dog/pitbuster/huellas/issues/29))
|
- Update rust version in docker to 1.71 ([#29](https://oolong.ludwig.dog/pitbuster/huellas/issues/29))
|
||||||
|
- Add CHANGELOG.md and git-cliff config ([#31](https://oolong.ludwig.dog/pitbuster/huellas/issues/31))
|
||||||
|
|
||||||
## [0.2.1] - 2023-05-23
|
## [0.2.1] - 2023-05-23
|
||||||
|
|
||||||
|
|
|
||||||
2
Cargo.lock
generated
2
Cargo.lock
generated
|
|
@ -670,7 +670,7 @@ checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "huellas"
|
name = "huellas"
|
||||||
version = "0.2.1"
|
version = "0.2.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"axum",
|
"axum",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "huellas"
|
name = "huellas"
|
||||||
version = "0.2.1"
|
version = "0.2.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "AGPL-3.0"
|
license = "AGPL-3.0"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ WORKDIR /usr/src/huellas/ts-client/
|
||||||
RUN npm ci
|
RUN npm ci
|
||||||
|
|
||||||
# Transpile and delete the first line of jvascript ts-client
|
# Transpile and delete the first line of jvascript ts-client
|
||||||
RUN tsc && RUN sed -i '1d' build/client.js
|
RUN tsc && sed -i '1d' build/client.js
|
||||||
|
|
||||||
# Minify static files
|
# Minify static files
|
||||||
COPY static /usr/src/huellas/static/
|
COPY static /usr/src/huellas/static/
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,8 @@ commit_parsers = [
|
||||||
{ message = "^refactor", group = "Refactor" },
|
{ message = "^refactor", group = "Refactor" },
|
||||||
{ message = "^style", group = "Styling" },
|
{ message = "^style", group = "Styling" },
|
||||||
{ message = "^test", group = "Testing" },
|
{ message = "^test", group = "Testing" },
|
||||||
{ message = "^chore\\(release\\): prepare for", skip = true },
|
{ message = "^chore\\(changelog\\):", skip = true },
|
||||||
|
{ message = "^chore\\(release\\):", skip = true },
|
||||||
{ message = "^chore\\(deps\\)", skip = true },
|
{ message = "^chore\\(deps\\)", skip = true },
|
||||||
{ message = "^chore\\(pr\\)", skip = true },
|
{ message = "^chore\\(pr\\)", skip = true },
|
||||||
{ message = "^chore\\(pull\\)", skip = true },
|
{ message = "^chore\\(pull\\)", skip = true },
|
||||||
|
|
|
||||||
11
hooks/install.sh
Executable file
11
hooks/install.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
if GIT_ROOT="$(git rev-parse --show-toplevel)"; then
|
||||||
|
ln -s $GIT_ROOT/hooks/pre-commit.sh $GIT_ROOT/.git/hooks/pre-commit
|
||||||
|
ln -s $GIT_ROOT/hooks/pre-push.sh $GIT_ROOT/.git/hooks/pre-push
|
||||||
|
else
|
||||||
|
echo "Failed to get git root, aborting"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
11
hooks/pre-commit.sh
Executable file
11
hooks/pre-commit.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
if ! cargo fmt -- --check
|
||||||
|
then
|
||||||
|
echo "There are some code style issues."
|
||||||
|
echo "Run cargo fmt first."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit 0
|
||||||
16
hooks/pre-push.sh
Executable file
16
hooks/pre-push.sh
Executable file
|
|
@ -0,0 +1,16 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
if ! cargo clippy --all-targets -- -D warnings
|
||||||
|
then
|
||||||
|
echo "There are some clippy issues."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! cargo test
|
||||||
|
then
|
||||||
|
echo "There are some test issues."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit 0
|
||||||
Loading…
Add table
Reference in a new issue