Skip to content

Commit

Permalink
Merge pull request #1 from postech-5soat-grupo-25/feat/improve_code
Browse files Browse the repository at this point in the history
Melhoria de Código e Testes e CI de cobertura de código
  • Loading branch information
albert-dm authored Jul 13, 2024
2 parents d669ba0 + c43075d commit faeacdf
Show file tree
Hide file tree
Showing 33 changed files with 2,543 additions and 1,880 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy

on:
push:
branches: [ "main" ]
branches: [ "skip" ]

env:
CARGO_TERM_COLOR: always
Expand Down
27 changes: 15 additions & 12 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
name: Unit tests

on:
push:
branches: [ "develop" ]
pull_request:
branches:
- main

env:
CARGO_TERM_COLOR: always

jobs:
build:

test:
name: coverage
runs-on: ubuntu-latest

container:
image: xd009642/tarpaulin:develop-nightly
options: --security-opt seccomp=unconfined
steps:
- uses: actions/checkout@v3
- name: Activate nightly
run: rustup default nightly
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Checkout repository
uses: actions/checkout@v2

- name: Generate code coverage
run: |
cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out xml --fail-under 50
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/target
tarpaulin-report.html
rustc-ice-*
Loading

0 comments on commit faeacdf

Please sign in to comment.