Skip to content

ci: bump the github-actions group across 1 directory with 3 updates #769

ci: bump the github-actions group across 1 directory with 3 updates

ci: bump the github-actions group across 1 directory with 3 updates #769

Workflow file for this run

name: presubmit
on: [pull_request, workflow_call, workflow_dispatch]
jobs:
test:
name: cargo test --all-features (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
- uses: moonrepo/setup-rust@abb2d32350334249b178c401e5ec5836e0cd88d3
with:
inherit-toolchain: true
- name: Install dependencies (Linux)
if: runner.os == 'Linux'
run: sudo apt-get install zsh fish
- name: Install dependencies (macOS)
if: runner.os == 'macOS'
run: brew install fish
- run: SHPOOL_LEAVE_TEST_LOGS=true RUST_BACKTRACE=full cargo test --all-features
- name: Archive Logs
if: always()
uses: actions/upload-artifact@v7
id: artifact-upload-step
with:
name: test-logs-${{ matrix.os }}
path: /tmp/shpool-test/**/*.log
retention-days: 14
# miri does not handle all the IO we do, disabled for now.
#
# miri:
# name: cargo +nightly miri test
# runs-on: ubuntu-22.04
# steps:
# - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
# - uses: moonrepo/setup-rust@b8edcc56aab474d90c7cf0bb8beeaf8334c15e9f
# with:
# components: miri
# channel: nightly
# - run: sudo apt-get install zsh fish
# - run: MIRIFLAGS="-Zmiri-disable-isolation" cargo +nightly miri test
rustfmt:
name: cargo +nightly fmt -- --check
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
- uses: moonrepo/setup-rust@abb2d32350334249b178c401e5ec5836e0cd88d3
with:
components: rustfmt
channel: nightly
- run: sudo apt-get install libpam0g-dev
- run: cargo +nightly fmt -- --check
cranky:
name: cargo +nightly cranky --all-targets -- -D warnings
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
- uses: moonrepo/setup-rust@abb2d32350334249b178c401e5ec5836e0cd88d3
with:
components: clippy
bins: cargo-cranky@0.3.0
channel: nightly
- run: sudo apt-get install zsh fish libpam0g-dev
- run: cargo +nightly cranky --all-targets -- -D warnings
deny:
name: cargo deny --all-features check licenses
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
- name: Install Rust toolchain
uses: moonrepo/setup-rust@abb2d32350334249b178c401e5ec5836e0cd88d3
with:
inherit-toolchain: true
bins: cargo-deny
- run: sudo apt-get install libpam0g-dev
- run: cargo deny --all-features check licenses