Skip to content

Commit

Permalink
Merge branch 'main' into sd-notify
Browse files Browse the repository at this point in the history
  • Loading branch information
geofft committed Oct 18, 2022
2 parents 18acde5 + 1d0bf2b commit 955f68a
Show file tree
Hide file tree
Showing 10 changed files with 235 additions and 120 deletions.
4 changes: 3 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
// VS Code don't watch files under ./target
"files.watcherExclude": {
"**/target/**": true
}
},
"git.autofetch": true,
"git.branchProtection": ["main"]
},

// Add the IDs of extensions you want installed when the container is created.
Expand Down
8 changes: 8 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
coverage:
status:
project:
default:
informational: true
patch:
default:
informational: true
25 changes: 0 additions & 25 deletions .github/workflows/ci.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/clippy.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/rust.yml

This file was deleted.

73 changes: 73 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Test

on:
push:
branches: [main]
pull_request:
branches: [main]

env:
CARGO_TERM_COLOR: always

jobs:
build-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

coverage:
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin:develop
options: --security-opt seccomp=unconfined

steps:
- uses: actions/checkout@v3
- name: Generate code coverage
run: cargo tarpaulin --all-features --workspace --timeout 120 --out Xml
- uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true

build-debian-10:
runs-on: ubuntu-latest
container: debian:10

steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
apt-get update
apt-get -y install build-essential dpkg-dev ca-certificates
apt-get -y build-dep .
- name: Build
run: cargo build --verbose

clippy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- run: rustup component add clippy
- name: rust-clippy-check
uses: actions-rs/clippy-check@v1.0.7
with:
token: ${{ secrets.GITHUB_TOKEN }}

run-ci:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install build-essential dpkg-dev
sudo apt-get build-dep .
- name: CI
run: ci/test.sh
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
/target
/.vscode
Vagrantfile
cobertura.xml
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 955f68a

Please sign in to comment.