From 7074498a68e8578c51ff188ec719bb8aeb26caf1 Mon Sep 17 00:00:00 2001 From: Edward Amsden Date: Thu, 23 Feb 2023 18:00:02 -0600 Subject: [PATCH 1/3] Github-suggested Rust workflow --- .github/workflows/rust.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..649f621 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,22 @@ +name: Rust + +on: + push: + branches: [ "status" ] + pull_request: + branches: [ "status" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose From 4cdf1753041284098e0fbff4f3dc34c65abf0d4d Mon Sep 17 00:00:00 2001 From: Edward Amsden Date: Fri, 24 Feb 2023 16:27:39 -0600 Subject: [PATCH 2/3] Rename workflow specific to ares and run in subdirectory --- .github/workflows/{rust.yml => ares.yml} | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) rename .github/workflows/{rust.yml => ares.yml} (83%) diff --git a/.github/workflows/rust.yml b/.github/workflows/ares.yml similarity index 83% rename from .github/workflows/rust.yml rename to .github/workflows/ares.yml index 649f621..eaf5b8b 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/ares.yml @@ -1,4 +1,4 @@ -name: Rust +name: Ares on: push: @@ -9,6 +9,10 @@ on: env: CARGO_TERM_COLOR: always +defaults: + run: + working-directory: rust/ares + jobs: build: From c045bc6705cbc5b70b9058f04dbbf6b92ab7d11d Mon Sep 17 00:00:00 2001 From: Alex Shelkovnykov Date: Tue, 28 Feb 2023 14:00:40 +0100 Subject: [PATCH 3/3] [build] add format check to CI workflow Co-authored-by: Edward Amsden --- .github/workflows/ares.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ares.yml b/.github/workflows/ares.yml index eaf5b8b..e0883c6 100644 --- a/.github/workflows/ares.yml +++ b/.github/workflows/ares.yml @@ -20,6 +20,8 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Format + run: cargo fmt --check - name: Build run: cargo build --verbose - name: Run tests