1
0
mirror of https://github.com/rust-unofficial/awesome-rust.git synced 2024-12-07 11:13:18 +02:00

Merge pull request #1684 from palfrey/upgrade-actions

Actions upgrade for node 16 issues
This commit is contained in:
Tom Parker-Shemilt 2024-03-17 14:08:29 +00:00 committed by GitHub
commit 9311e9f5fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 10 deletions

View File

@ -14,7 +14,7 @@ jobs:
name: Lint Markdown content
steps:
- name: Checkout the repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Markdown lint for README
uses: docker://avtodev/markdown-lint:v1
with:
@ -25,16 +25,16 @@ jobs:
name: Lint for editorconfig violations
steps:
- name: Checkout the repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Check for editorconfig violations
uses: editorconfig-checker/action-editorconfig-checker@v1
uses: editorconfig-checker/action-editorconfig-checker@v2
lint-markdown-toc:
runs-on: ubuntu-latest
name: Lint for Table of Contents
steps:
- name: Checkout the repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 16

View File

@ -14,19 +14,17 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: rustfmt
- uses: Swatinem/rust-cache@v2
- name: Get random cache id
run: echo "CACHE_ID=$((RANDOM))" >> $GITHUB_ENV
shell: bash
- uses: pat-s/always-upload-cache@v3.0.11
- name: Load results cache
uses: pat-s/always-upload-cache@v3.0.11
with:
path: results/*.yaml
key: results-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('README.md') }}-${{ env.CACHE_ID }}
key: results-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('README.md') }}-${{ github.run_id }}
restore-keys: |
results-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('README.md') }}-
results-${{ hashFiles('Cargo.lock') }}-