From 0d1b841fa9dbcb697ee18c016b4530e9fdc0d237 Mon Sep 17 00:00:00 2001 From: michaelangrivera Date: Sun, 5 Nov 2023 20:13:30 -0500 Subject: [PATCH] more ci --- .github/workflows/ci.yaml | 31 ---------------------------- .github/workflows/rust.yaml | 41 +++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 31 deletions(-) delete mode 100644 .github/workflows/ci.yaml create mode 100644 .github/workflows/rust.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml deleted file mode 100644 index 4c67993..0000000 --- a/.github/workflows/ci.yaml +++ /dev/null @@ -1,31 +0,0 @@ -name: Rust - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Install Rust - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - name: Build - uses: actions-rs/cargo@v1 - with: - command: build - args: --verbose - - name: Run tests - uses: actions-rs/cargo@v1 - with: - command: test - args: --verbose diff --git a/.github/workflows/rust.yaml b/.github/workflows/rust.yaml new file mode 100644 index 0000000..cd8daf6 --- /dev/null +++ b/.github/workflows/rust.yaml @@ -0,0 +1,41 @@ +name: CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - name: Build + uses: actions-rs/cargo@v1 + with: + command: build + args: --verbose + + test: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - name: Test + uses: actions-rs/cargo@v1 + with: + command: test + args: --verbose