Skip to content

Commit

Permalink
ci: setup linux workflow with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
calebcartwright committed Jul 25, 2021
1 parent fe9cf2b commit ce4c87a
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: linux
on:
push:
branches:
- master
pull_request:

jobs:
test:
runs-on: ubuntu-latest
name: linux

steps:
- name: checkout
uses: actions/checkout@v2

- name: setup
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-x86_64-unknown-linux-gnu
target: x86_64-unknown-linux-gnu
override: true
profile: minimal
default: true

- name: prep test tools
run: |
cargo install cargo-junit
mkdir -p .testresults/unit
mkdir -p .coverage/unit
- name: generate code coverage
uses: actions-rs/[email protected]
with:
args: '-o Xml --exclude-files *_test.rs,main.rs --output-dir .coverage/unit'

- name: generate junit unit test results
run: cargo junit --name .testresults/unit/junit.xml

- name: Setup testspace publisher
uses: testspace-com/setup-testspace@v1
with:
domain: ${{github.repository_owner}}
if: always()

- name: Publish test results
run: testspace .testresults/unit/junit.xml
if: always()

0 comments on commit ce4c87a

Please sign in to comment.