Skip to content

Commit

Permalink
Update github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
toelo3 committed Dec 12, 2023
1 parent 9a3d8fe commit 8fbc286
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 64 deletions.
23 changes: 23 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# ref: https://docs.codecov.com/docs/codecovyml-reference
coverage:
# Hold ourselves to a high bar
range: 85..100
round: down
precision: 1
status:
# ref: https://docs.codecov.com/docs/commit-status
project:
default:
# Avoid false negatives
threshold: 1%

# Test and example files aren't important for coverage
ignore:
- "tests"
- "examples"
- "exeample_dsh_service"

# Make comments less noisy
comment:
layout: "files"
require_changes: yes
2 changes: 1 addition & 1 deletion .github/workflows/branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:

jobs:
linux:
runs-on: self-hosted
runs-on: ubuntu-latest
strategy:
matrix:
version:
Expand Down
64 changes: 1 addition & 63 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:

jobs:
linux:
runs-on: self-hosted
runs-on: ubuntu-latest
strategy:
matrix:
version:
Expand Down Expand Up @@ -50,68 +50,6 @@ jobs:
run: cargo install cargo-audit
- name: audit check
run: cargo audit
windows:
runs-on: windows-latest
strategy:
matrix:
version:
# - nightly
# - beta
- stable
target:
- x86_64-pc-windows-gnu
# - x86_64-pc-windows-msvc
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.version }}
override: true
- name: install
run: |
git clone https://github.com/Microsoft/vcpkg.git
./vcpkg/bootstrap-vcpkg.sh
vcpkg integrate install
vcpkg install openssl:x64-windows-static-md
- name: build
run: cargo build --features full
- name: test
run: cargo test --features full -- --test-threads=1 || true
env:
RUST_BACKTRACE: 1
- name: install audit
run: cargo install cargo-audit
- name: audit check
run: cargo audit

mac:
runs-on: macos-latest
strategy:
matrix:
version:
- stable
# - beta
# - nightly
target:
- x86_64-apple-darwin
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.version }}
override: true
- name: build
run: cargo build --features full
- name: test
run: cargo test --features full -- --test-threads=1 || true
env:
RUST_BACKTRACE: 1
- name: install audit
run: cargo install cargo-audit
- name: audit check
run: cargo audit
coverage:
runs-on: ubuntu-latest
name: ubuntu / stable / coverage
Expand Down

0 comments on commit 8fbc286

Please sign in to comment.