From 0cb08926507669e01005be7b69914e1a69098486 Mon Sep 17 00:00:00 2001 From: Taeyoon Kwon <47032283+TaeyoonKwon@users.noreply.github.com> Date: Wed, 16 Feb 2022 02:07:06 +0900 Subject: [PATCH] add ci configuration --- .github/CODEOWNERS | 8 ++++++++ .github/workflows/ci.yaml | 25 +++++++++++++++++++++++++ Cargo.toml | 2 +- 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .github/CODEOWNERS create mode 100644 .github/workflows/ci.yaml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..9602b49 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,8 @@ +# Each line is a file pattern followed by one or more owners. + +# These owners will be the default owners for everything in +# the repo. Unless a later match takes precedence, +# Below users will be requested for +# review when someone opens a pull request. + +@TaeyoonKwon \ No newline at end of file diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..07098f3 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,25 @@ +name: CI + +on: + push: + branches: [main] + paths: + - "**" + pull_request: + branches: [main] + paths: + - "**" + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose diff --git a/Cargo.toml b/Cargo.toml index 1867b87..18230d8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rust-rocket-sample" -version = "1.0.1" +version = "1.1.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html