Skip to content

Commit

Permalink
ci: run tests and build on pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
nicotsx committed Jan 24, 2024
1 parent 126c5ee commit bff4cd3
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
os: ubuntu-20.04
target: x86_64-unknown-linux-gnu
bin: runtipi-cli
name: runtipi-cli-linux-x64
name: runtipi-cli-linux-x86_64
command: build

# - release_for: macOS-aarch64
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI
on:
pull_request:

jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true

- name: Build
run: cargo build --verbose

- name: Run tests
run: cargo test --verbose

0 comments on commit bff4cd3

Please sign in to comment.