diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8257cf4..a44fb08 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,9 +3,6 @@ name: Build & release chat on: push: branches: [main] - pull_request: - branches: - - "**" workflow_dispatch: inputs: release: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..6169e02 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,24 @@ +name: Test + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions-rust-lang/setup-rust-toolchain@v1.10.1 + with: + toolchain: nightly + rustflags: + - name: Build + run: cargo build --release --verbose + - name: Run tests + run: cargo test --release --verbose