Skip to content

Commit

Permalink
Merge pull request #13 from insha/ci-workflow
Browse files Browse the repository at this point in the history
Adding CI workflow for build and tests
  • Loading branch information
insha authored Oct 14, 2023
2 parents 03e2d62 + ee6d3de commit 416fbe1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Rust

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

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
2 changes: 1 addition & 1 deletion src/astronomy/qiblah.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,6 @@ mod tests {
let qiblah = Qiblah::new(nyc);
let actual_value = qiblah.to_string();

assert_eq!(actual_value, "58.48176358718943");
assert!(actual_value.contains("58.4817635"));
}
}

0 comments on commit 416fbe1

Please sign in to comment.