Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: setup project #1

Merged
merged 1 commit into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions .github/codecov.yml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/build.yml

This file was deleted.

61 changes: 61 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: CI

on:
push:
branches:
- main
tags:
- "*"
pull_request:
paths:
- "nusamai/**"
- "nusamai-*/**"
- ".github/**"
- "*"
env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
RUSTUP_MAX_RETRIES: 10
RUST_BACKTRACE: short
ACTION_LOG_DISABLE: true

jobs:
check:
name: cargo check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Check
run: cargo check --all

style:
name: cargo fmt
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: rustfmt
run: cargo fmt --all -- --check

warnings:
runs-on: ubuntu-latest
needs: check
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: rustfmt
run: cargo clippy --all -- -D warnings

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Run tests
run: cargo test --workspace --all-targets --all-features
44 changes: 0 additions & 44 deletions .github/workflows/doc.yml

This file was deleted.

46 changes: 0 additions & 46 deletions .github/workflows/documentation.yml

This file was deleted.

62 changes: 0 additions & 62 deletions .github/workflows/release.yaml

This file was deleted.

46 changes: 0 additions & 46 deletions .github/workflows/test_app.yml

This file was deleted.

47 changes: 0 additions & 47 deletions .github/workflows/test_libs.yml

This file was deleted.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[workspace]
members = [
"app/src-tauri",
"nusamai-*",
"nusamai-*/nusamai-*-json",
"nusamai",
Expand Down
Loading