diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 044bb97..7aeb0f3 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,3 +4,7 @@ updates: directory: "/" schedule: interval: "daily" +- package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 47b2c47..0e14c2e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -6,47 +6,33 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - components: rustfmt - toolchain: nightly - profile: minimal - override: true - - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check + - name: Setup Rust toolchain + run: rustup show && rustup update + - name: cargo fmt + run: cargo fmt --all -- --check clippy: name: cargo clippy runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - components: clippy - toolchain: nightly - profile: minimal - override: true - - uses: actions-rs/cargo@v1 - with: - command: clippy - args: --all-features -- -D warnings + - name: Setup Rust toolchain + run: rustup show && rustup update + - name: cargo clippy + run: cargo clippy --workspace --all-features --tests -- -D warnings readme: name: cargo readme runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - profile: minimal - override: true + - name: Setup Rust toolchain + run: rustup show && rustup update - run: cargo install cargo-readme - run: cargo readme > README.md && git diff --exit-code check-spdx-headers: + name: spdx check runs-on: ubuntu-latest steps: - name: checkout diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d3731b3..765e5a6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,14 +6,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - toolchain: ${{ matrix.toolchain }} - override: true - - uses: actions-rs/cargo@v1 - with: - command: test - args: ${{ matrix.profile.flag }} --features=${{ matrix.features }} + - name: Install Rust + run: rustup toolchain install ${{ matrix.toolchain }} + - name: cargo test + run: cargo +${{ matrix.toolchain }} test --features=${{ matrix.features }} ${{ matrix.profile.flag }} strategy: fail-fast: false matrix: @@ -47,14 +43,10 @@ jobs: runs-on: [self-hosted, linux, sgx1] steps: - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - toolchain: ${{ matrix.toolchain }} - override: true - - uses: actions-rs/cargo@v1 - with: - command: test - args: ${{ matrix.profile.flag }} --all-features + - name: Install Rust + run: rustup toolchain install ${{ matrix.toolchain }} + - name: cargo test + run: cargo +${{ matrix.toolchain }} test --all-features ${{ matrix.profile.flag }} strategy: fail-fast: false matrix: