Skip to content

Commit

Permalink
feat: setup project (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
miseyu authored Apr 17, 2024
1 parent ea7d1ed commit 693fdf1
Show file tree
Hide file tree
Showing 132 changed files with 66 additions and 341,490 deletions.
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

0 comments on commit 693fdf1

Please sign in to comment.