Skip to content

Commit

Permalink
Update github actions and add Dependabot (#1141)
Browse files Browse the repository at this point in the history
Update GitHub actions and add Dependabot
  • Loading branch information
yubiuser authored Apr 11, 2023
1 parent 7de8bdc commit a7fb7ee
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 17 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
day: saturday
time: "10:00"
open-pull-requests-limit: 10
target-branch: dev
34 changes: 17 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,18 +65,18 @@ jobs:
experimental: true
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3.5.0

- name: Install toolchain
uses: actions-rs/toolchain@v1
uses: actions-rs/toolchain@v1.0.6
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true

- name: Get Rustc version
id: get-rustc-version
run: echo "::set-output name=version::$(rustc -V)"
run: echo "version=$(rustc -V)" >> $GITHUB_OUTPUT
shell: bash

- name: Cache Rust dependencies
Expand Down Expand Up @@ -117,22 +117,22 @@ jobs:
- stable
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3.5.0

- name: Install toolchain
uses: actions-rs/toolchain@v1
uses: actions-rs/toolchain@v1.0.6
with:
toolchain: ${{ matrix.toolchain }}
profile: minimal
override: true

- name: Get Rustc version
id: get-rustc-version
run: echo "::set-output name=version::$(rustc -V)"
run: echo "version=$(rustc -V)" >> $GITHUB_OUTPUT
shell: bash

- name: Cache Rust dependencies
uses: actions/cache@v2
uses: actions/cache@v3.3.1
with:
path: |
~/.cargo/registry/index
Expand Down Expand Up @@ -164,10 +164,10 @@ jobs:
- stable
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3.5.0

- name: Install toolchain
uses: actions-rs/toolchain@v1
uses: actions-rs/toolchain@v1.0.6
with:
profile: minimal
target: ${{ matrix.target }}
Expand All @@ -176,11 +176,11 @@ jobs:

- name: Get Rustc version
id: get-rustc-version
run: echo "::set-output name=version::$(rustc -V)"
run: echo "version=$(rustc -V)" >> $GITHUB_OUTPUT
shell: bash

- name: Cache Rust dependencies
uses: actions/cache@v2
uses: actions/cache@v3.3.1
with:
path: |
~/.cargo/registry/index
Expand All @@ -205,10 +205,10 @@ jobs:
toolchain: [stable]
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3.5.0

- name: Install toolchain
uses: actions-rs/toolchain@v1
uses: actions-rs/toolchain@v1.0.6
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
Expand All @@ -217,11 +217,11 @@ jobs:

- name: Get Rustc version
id: get-rustc-version
run: echo "::set-output name=version::$(rustc -V)"
run: echo "version=$(rustc -V)" >> $GITHUB_OUTPUT
shell: bash

- name: Cache Rust dependencies
uses: actions/cache@v2
uses: actions/cache@v3.3.1
with:
path: |
~/.cargo/registry/index
Expand All @@ -247,9 +247,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3.5.0
- name: Install toolchain
uses: actions-rs/toolchain@v1
uses: actions-rs/toolchain@v1.0.6
with:
profile: minimal
toolchain: stable
Expand Down

0 comments on commit a7fb7ee

Please sign in to comment.