Skip to content

Commit d74c038

Browse files
committed
add github actions
1 parent fcdfc49 commit d74c038

File tree

5 files changed

+51
-168
lines changed

5 files changed

+51
-168
lines changed

.github/workflows/rust.yml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
master
7+
pull_request:
8+
branches:
9+
master
10+
11+
jobs:
12+
test:
13+
name: Test
14+
runs-on: ubuntu-latest
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
rust: [stable, beta, nightly]
19+
steps:
20+
- uses: actions/checkout@v2
21+
- uses: actions-rs/toolchain@v1
22+
with:
23+
toolchain: ${{ matrix.rust }}
24+
override: true
25+
- uses: actions-rs/cargo@v1
26+
with:
27+
command: test
28+
check:
29+
runs-on: ubuntu-latest
30+
name: Check
31+
steps:
32+
- uses: actions/checkout@v2
33+
- uses: actions-rs/toolchain@v1
34+
with:
35+
toolchain: stable
36+
override: true
37+
- uses: actions-rs/cargo@v1
38+
with:
39+
command: fmt
40+
args: -- --check
41+
42+
- uses: actions-rs/[email protected]
43+
with:
44+
args: --ignore-tests -- --test-threads 1
45+
- uses: codecov/codecov-action@v1
46+
- name: Archive code coverage results
47+
uses: actions/upload-artifact@v1
48+
with:
49+
name: code-coverage-report
50+
path: cobertura.xml

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# rust-dotenv
22

3-
[![Build Status](https://dev.azure.com/dotenv-rs/dotenv/_apis/build/status/dotenv-rs.dotenv?branchName=master)](https://dev.azure.com/dotenv-rs/dotenv/_build/latest?definitionId=2&branchName=master)
3+
![CI](https://github.com/dotenv-rs/dotenv/workflows/CI/badge.svg)
44
[![codecov](https://codecov.io/gh/dotenv-rs/dotenv/branch/master/graph/badge.svg)](https://codecov.io/gh/dotenv-rs/dotenv)
55
[![Crates.io](https://img.shields.io/crates/v/dotenv.svg)](https://crates.io/crates/dotenv)
66

azure-pipelines.yml

-22
This file was deleted.

azure-pipelines/build-template.yml

-68
This file was deleted.

azure-pipelines/fix_coverage_for_cobertura.py

-77
This file was deleted.

0 commit comments

Comments
 (0)