Skip to content

Commit e61a25e

Browse files
committed
Fix and clean workflows
This change updates, addresses some minor issues with the master-coverage, release and pull-request workflows; and completely rewrites the release-latest workflow. This includes adding new release targets for the latest release, and using a more reliable process for uploading the build artifacts to GitHub releases.
1 parent d13663f commit e61a25e

File tree

6 files changed

+404
-233
lines changed

6 files changed

+404
-233
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ updates:
55
schedule:
66
interval: daily
77
time: "08:30"
8-
open-pull-requests-limit: 10
8+
open-pull-requests-limit: 0

.github/scripts/push-latest-release.bash

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/master-coverage.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,7 @@ jobs:
2222
run: |
2323
cargo +nightly tarpaulin --workspace --all-features --ignore-tests --line --output-dir coverage --timeout 10 --out Lcov
2424
- name: Post to Coveralls
25-
uses: coverallsapp/github-action@master
25+
uses: coverallsapp/github-action@v2
2626
with:
2727
github-token: ${{ secrets.GITHUB_TOKEN }}
2828
path-to-lcov: "coverage/lcov.info"
29-
- name: Archive code coverage results
30-
uses: actions/upload-artifact@v1
31-
with:
32-
name: code-coverage-report
33-
path: coverage/lcov.info

.github/workflows/pull-request.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ name: Pull Request
22

33
on:
44
pull_request:
5-
# run CI/CD against master as well, to generate cache
6-
push:
5+
push: # run CI/CD against master as well, to generate cache
76
branches:
87
- master
98

@@ -15,7 +14,7 @@ jobs:
1514
- uses: actions/checkout@v3
1615
- uses: dtolnay/rust-toolchain@stable
1716
- uses: Swatinem/rust-cache@v2
18-
- uses: baptiste0928/cargo-install@v1
17+
- uses: baptiste0928/cargo-install@v2
1918
with:
2019
crate: cargo-make
2120
- name: Test
@@ -33,7 +32,7 @@ jobs:
3332
with:
3433
components: clippy
3534
- uses: Swatinem/rust-cache@v2
36-
- uses: baptiste0928/cargo-install@v1
35+
- uses: baptiste0928/cargo-install@v2
3736
with:
3837
crate: cargo-make
3938
- run: cargo make lint-stable
@@ -54,7 +53,7 @@ jobs:
5453
toolchain: nightly
5554
components: rustfmt
5655
- uses: Swatinem/rust-cache@v2
57-
- uses: baptiste0928/cargo-install@v1
56+
- uses: baptiste0928/cargo-install@v2
5857
with:
5958
crate: cargo-make
6059
- run: cargo make format
@@ -74,7 +73,7 @@ jobs:
7473
run: |
7574
cargo +nightly tarpaulin --workspace --all-features --ignore-tests --line --output-dir coverage --timeout 10 --out Lcov
7675
- name: Post to Coveralls
77-
uses: coverallsapp/github-action@master
76+
uses: coverallsapp/github-action@v2
7877
with:
7978
github-token: ${{ secrets.GITHUB_TOKEN }}
8079
path-to-lcov: "coverage/lcov.info"
@@ -86,7 +85,7 @@ jobs:
8685
- uses: actions/checkout@v3
8786
- uses: dtolnay/rust-toolchain@stable
8887
- uses: Swatinem/rust-cache@v2
89-
- uses: baptiste0928/cargo-install@v1
88+
- uses: baptiste0928/cargo-install@v2
9089
with:
9190
crate: cargo-make
9291
- name: Test

0 commit comments

Comments
 (0)