Skip to content

Commit

Permalink
Switch 0.5.x branch to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
djc authored and Ralith committed Feb 1, 2020
1 parent 75b9b0f commit e55828c
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 15 deletions.
73 changes: 73 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: CI

on:
push:
branches: ['master', '0.5.x']
pull_request:

jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
rust: [stable, beta]
exclude:
- os: macos-latest
rust: beta
- os: windows-latest
rust: beta

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- uses: actions-rs/cargo@v1
with:
command: build
args: --workspace --all-targets
- uses: actions-rs/cargo@v1
with:
command: test
args: --workspace

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- uses: actions-rs/cargo@v1
if: always()
with:
command: clippy
args: --workspace --all-targets -- -D warnings

coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- uses: actions-rs/[email protected]
- uses: codecov/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}
- uses: actions/upload-artifact@v1
with:
name: code-coverage-report
path: cobertura.xml
15 changes: 0 additions & 15 deletions azure-pipelines.yml

This file was deleted.

0 comments on commit e55828c

Please sign in to comment.