Skip to content

Bump derive_more from 0.99.18 to 2.0.1 #127

Bump derive_more from 0.99.18 to 2.0.1

Bump derive_more from 0.99.18 to 2.0.1 #127

Workflow file for this run

name: Continuous Integration
on:
pull_request:
branches: [master]
push:
branches: [master]
tags: [v*]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
components: clippy
override: true
- name: Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features -- -D warnings
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
components: rustfmt
override: true
- name: rustfmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
build:
name: Test Rust ${{ matrix.toolchain }} on ${{ matrix.os }}
needs: [clippy, rustfmt]
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
toolchain: [nightly]
os: [ubuntu]
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true
- name: Remove .lock file
run: rm Cargo.lock
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
# https://dev.to/lkurzyniec/github-auto-merge-dependabot-prs-26dj
dependabot:
runs-on: ubuntu-latest
needs: [build]
permissions:
actions: read
checks: read
contents: write
deployments: read
issues: write
packages: read
pages: read
pull-requests: write
repository-projects: read
security-events: read
statuses: read
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}