mirror of
https://github.com/rust-unofficial/awesome-rust
synced 2024-11-22 20:03:07 +00:00
Merge pull request #1684 from palfrey/upgrade-actions
Actions upgrade for node 16 issues
This commit is contained in:
commit
9311e9f5fa
2 changed files with 8 additions and 10 deletions
8
.github/workflows/lint.yml
vendored
8
.github/workflows/lint.yml
vendored
|
@ -14,7 +14,7 @@ jobs:
|
||||||
name: Lint Markdown content
|
name: Lint Markdown content
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the repository
|
- name: Checkout the repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- name: Markdown lint for README
|
- name: Markdown lint for README
|
||||||
uses: docker://avtodev/markdown-lint:v1
|
uses: docker://avtodev/markdown-lint:v1
|
||||||
with:
|
with:
|
||||||
|
@ -25,16 +25,16 @@ jobs:
|
||||||
name: Lint for editorconfig violations
|
name: Lint for editorconfig violations
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the repository
|
- name: Checkout the repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- name: Check for editorconfig violations
|
- name: Check for editorconfig violations
|
||||||
uses: editorconfig-checker/action-editorconfig-checker@v1
|
uses: editorconfig-checker/action-editorconfig-checker@v2
|
||||||
|
|
||||||
lint-markdown-toc:
|
lint-markdown-toc:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Lint for Table of Contents
|
name: Lint for Table of Contents
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the repository
|
- name: Checkout the repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
|
|
10
.github/workflows/rust.yml
vendored
10
.github/workflows/rust.yml
vendored
|
@ -14,19 +14,17 @@ jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: dtolnay/rust-toolchain@master
|
- uses: dtolnay/rust-toolchain@master
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
components: rustfmt
|
components: rustfmt
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
- name: Get random cache id
|
- name: Load results cache
|
||||||
run: echo "CACHE_ID=$((RANDOM))" >> $GITHUB_ENV
|
uses: pat-s/always-upload-cache@v3.0.11
|
||||||
shell: bash
|
|
||||||
- uses: pat-s/always-upload-cache@v3.0.11
|
|
||||||
with:
|
with:
|
||||||
path: results/*.yaml
|
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: |
|
restore-keys: |
|
||||||
results-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('README.md') }}-
|
results-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('README.md') }}-
|
||||||
results-${{ hashFiles('Cargo.lock') }}-
|
results-${{ hashFiles('Cargo.lock') }}-
|
||||||
|
|
Loading…
Reference in a new issue