Skip to content

Commit bc9adc2

Browse files
authored
Merge pull request #115 from your-tools/rewrite-test-github-actions
Simplify GitHub Actions
2 parents 7ad8110 + 5b02e12 commit bc9adc2

File tree

3 files changed

+8
-55
lines changed

3 files changed

+8
-55
lines changed

.github/workflows/audit.yml

-21
This file was deleted.

.github/workflows/lint.yml

+4-15
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,8 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v1
14+
- uses: actions/checkout@v4
1515

16-
- name: Install latest stable toolchain
17-
uses: actions-rs/toolchain@v1
18-
with:
19-
toolchain: stable
20-
override: true
21-
22-
- name: Install clippy
23-
run: rustup component add clippy
24-
25-
- name: Run clippy
26-
uses: actions-rs/clippy-check@v1
27-
with:
28-
token: ${{ secrets.GITHUB_TOKEN }}
29-
args: --all-targets -- --deny warnings
16+
- run: rustup update
17+
- run: rustup component add clippy
18+
- run : cargo clippy --all-targets -- --deny warnings

.github/workflows/test.yml

+4-19
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,7 @@ jobs:
1616
os: [ubuntu-latest, macos-latest, windows-latest]
1717

1818
steps:
19-
- uses: actions/checkout@v1
20-
21-
- name: Install latest stable toolchain
22-
uses: actions-rs/toolchain@v1
23-
with:
24-
toolchain: stable
25-
override: true
26-
27-
- name: "Build"
28-
uses: actions-rs/cargo@v1
29-
with:
30-
command: build
31-
args: --release
32-
33-
- name: "Test"
34-
uses: actions-rs/cargo@v1
35-
with:
36-
command: test
37-
args: --release
19+
- uses: actions/checkout@v4
20+
- run: rustup update
21+
- run: cargo build --release
22+
- run: cargo test --release

0 commit comments

Comments
 (0)