Skip to content

Commit

Permalink
Update github actions to v4
Browse files Browse the repository at this point in the history
- Run full tests in main.yml
  • Loading branch information
spamwax committed Sep 22, 2023
1 parent 8f82fb5 commit caefd03
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
if: ${{ github.ref_type != 'tag' }}
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Rust linting tools
uses: actions-rs/toolchain@v1
with:
Expand All @@ -37,7 +37,7 @@ jobs:
# Audit:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# - uses: actions/checkout@v4
# - uses: EmbarkStudios/cargo-deny-action@v1


9 changes: 7 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
with:
Expand All @@ -62,12 +62,17 @@ jobs:
with:
command: test
args: --features updater --doc
- name: Run all tests (${{ matrix.os }}-${{ matrix.rust }})
uses: actions-rs/cargo@v1
with:
command: test
args: -- --test-threads=1 --nocapture
Publish:
runs-on: macos-latest
if: ${{ github.ref_type == 'tag' }}
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Rust tools
uses: actions-rs/toolchain@v1
with:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ else
fi
exit

cargo test --features updater --lib -- --test-threads=1
cargo update
cargo test -- --test-threads=1 --nocapture
cargo test --features updater --lib -- --test-threads=1 --nocapture
# cargo test --features updater,ci --lib -- --test-threads=1

# cargo test --features updater --lib -- --ignored --test-threads=1
# cargo test --features updater,ci --lib -- --ignored --test-threads=1

# doc tests
cargo test --features updater --doc
# cargo test --features updater --doc
# cargo test --features updater,ci --doc

0 comments on commit caefd03

Please sign in to comment.