Merge branch 'main' of https://github.com/schmelczer/obsidian-shared-sync
This commit is contained in:
commit
de4763c2cd
37 changed files with 922 additions and 696 deletions
31
.github/workflows/check.yml
vendored
31
.github/workflows/check.yml
vendored
|
|
@ -30,32 +30,5 @@ jobs:
|
|||
sqlx database create --database-url sqlite://db.sqlite3
|
||||
sqlx migrate run --source src/app_state/database/migrations --database-url sqlite://db.sqlite3
|
||||
|
||||
- name: Lint sync-server
|
||||
run: |
|
||||
cd sync-server
|
||||
cargo clippy --all-targets --all-features
|
||||
cargo fmt --all -- --check
|
||||
cargo machete
|
||||
|
||||
- name: Test sync-server
|
||||
run: |
|
||||
cd sync-server
|
||||
cargo test --verbose
|
||||
|
||||
- name: Lint frontend
|
||||
run: |
|
||||
cd frontend
|
||||
npm ci
|
||||
npm run build
|
||||
npm run lint
|
||||
if [[ $(git status --porcelain) ]]; then
|
||||
git status --porcelain
|
||||
echo "Failing CI because the working directory is not clean after linting"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Test frontend
|
||||
run: |
|
||||
cd frontend
|
||||
npm ci
|
||||
npm run test
|
||||
- name: Lint & test
|
||||
run: scripts/check.sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue