Skip to content

Commit

Permalink
Upgrade GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
andy128k committed Dec 27, 2022
1 parent eb33b90 commit 5c87c63
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 33 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build.yml
Expand Up @@ -16,14 +16,13 @@ jobs:
- nightly
- beta
- stable
- 1.42.0
- 1.54.0

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- name: Build
run: |
cargo build --all-targets --no-default-features --verbose
Expand Down
19 changes: 6 additions & 13 deletions .github/workflows/clippy.yml
Expand Up @@ -6,19 +6,12 @@ jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install clippy
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all --all-features
- uses: actions/checkout@v3
- name: dtolnay/rust-toolchain@v1
- run: cargo clippy --all --all-features
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run fmt check
run: cargo fmt --all -- --check
- uses: actions/checkout@v3
- name: dtolnay/rust-toolchain@v1
- run: cargo fmt --all -- --check
21 changes: 6 additions & 15 deletions .github/workflows/coverage.yml
Expand Up @@ -9,19 +9,10 @@ on:
jobs:
coverage:
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin:latest
options: --security-opt seccomp=unconfined
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: actions-rs/install@v0.1
with:
crate: cargo-tarpaulin
use-tool-cache: true
- name: Run coverage
run: cargo tarpaulin -f -t 5 --out Xml -v -- --test-threads=1
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{secrets.CODECOV_TOKEN}}
- uses: actions/checkout@v3
- run: cargo tarpaulin -f -t 5 --out Xml -v -- --test-threads=1
- uses: codecov/codecov-action@v3
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -4,7 +4,7 @@

- Wrap `quick_xml::XmlError` into a newtype [`#65`](https://github.com/rust-syndication/atom/pull/65)
- Implement `std::error::Error` for `XmlError`. Mark helper traits as `pub(crate)` to prevent their accidental leakage to public API [`#66`](https://github.com/rust-syndication/atom/pull/66)
- Bump MSRV (Minimum Supported Rust Version) from 1.40.0 to 1.42.0 [`#66`](https://github.com/rust-syndication/atom/pull/66)
- Bump MSRV (Minimum Supported Rust Version) from 1.40.0 to 1.54.0 [`#66`](https://github.com/rust-syndication/atom/pull/66) and [`#69`](https://github.com/rust-syndication/atom/pull/69)

## 0.11.0 - 2021-10-20

Expand Down

0 comments on commit 5c87c63

Please sign in to comment.