Skip to content

Commit

Permalink
Merge e72555b into 0a6bcbc
Browse files Browse the repository at this point in the history
  • Loading branch information
pkhuong committed Sep 10, 2023
2 parents 0a6bcbc + e72555b commit 872044a
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 31 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Unified pipeline

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

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

- name: Install clippy
run: rustup component add clippy

- name: Run clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features

- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info

- name: Upload to coveralls
uses: coverallsapp/github-action@v2

- name: Archive code coverage results
uses: actions/upload-artifact@v1
with:
name: code-coverage-report
path: lcov.info

31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

0 comments on commit 872044a

Please sign in to comment.