Bump GitHub action workflows to their latest versions

pull/734/head^2
Andreas Deininger 2024-09-10 22:20:32 +07:00 committed by Wilfred Hughes
parent 6bbeb53c68
commit 5ecf3c1eb2
8 changed files with 22 additions and 24 deletions

@ -6,7 +6,7 @@ jobs:
coverage: coverage:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Install Rust - name: Install Rust
run: rustup toolchain install stable --component llvm-tools-preview run: rustup toolchain install stable --component llvm-tools-preview
@ -16,7 +16,7 @@ jobs:
- name: Generate code coverage - name: Generate code coverage
run: cargo +stable llvm-cov --all-features --workspace --lcov --output-path lcov.info run: cargo +stable llvm-cov --all-features --workspace --lcov --output-path lcov.info
- name: Upload coverage to Codecov - name: Upload coverage to Codecov
uses: codecov/codecov-action@v3 uses: codecov/codecov-action@v4
with: with:
files: lcov.info files: lcov.info
fail_ci_if_error: false fail_ci_if_error: false

@ -22,7 +22,7 @@ jobs:
if: needs.pre_deploy.outputs.should_skip != 'true' if: needs.pre_deploy.outputs.should_skip != 'true'
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Install jq - name: Install jq
run: sudo apt-get install -y jq run: sudo apt-get install -y jq
@ -31,9 +31,9 @@ jobs:
- run: cargo doc - run: cargo doc
- name: Setup mdBook - name: Setup mdBook
uses: peaceiris/actions-mdbook@v1 uses: peaceiris/actions-mdbook@v2
with: with:
mdbook-version: '0.4.34' mdbook-version: '0.4.40'
- name: Build manual - name: Build manual
run: mdbook build run: mdbook build
@ -53,7 +53,7 @@ jobs:
run: cp -r homepage/* manual/book/ run: cp -r homepage/* manual/book/
- name: Deploy to GitHub pages - name: Deploy to GitHub pages
uses: JamesIves/github-pages-deploy-action@v4.4.3 uses: JamesIves/github-pages-deploy-action@v4.6.4
with: with:
branch: gh-pages branch: gh-pages
folder: manual/book folder: manual/book

@ -9,7 +9,7 @@ jobs:
create-release: create-release:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: taiki-e/create-gh-release-action@v1 - uses: taiki-e/create-gh-release-action@v1
with: with:
# Create a draft release so we can add the changelog before publishing it # Create a draft release so we can add the changelog before publishing it
@ -46,7 +46,7 @@ jobs:
os: macos-latest os: macos-latest
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: taiki-e/upload-rust-binary-action@v1 - uses: taiki-e/upload-rust-binary-action@v1
with: with:
bin: difft bin: difft
@ -63,7 +63,7 @@ jobs:
push_crates_io: push_crates_io:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: katyo/publish-crates@v1 - uses: katyo/publish-crates@v2
with: with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

@ -34,7 +34,7 @@ jobs:
steps: steps:
- name: Checkout source code - name: Checkout source code
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Install Rust toolchain - name: Install Rust toolchain
uses: dtolnay/rust-toolchain@1.65.0 uses: dtolnay/rust-toolchain@1.65.0
@ -65,7 +65,7 @@ jobs:
name: Test with MIME database name: Test with MIME database
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.65.0 - uses: dtolnay/rust-toolchain@1.65.0
# This runs tests that rely on the MIME database being present. # This runs tests that rely on the MIME database being present.
- run: cargo test -- --ignored - run: cargo test -- --ignored
@ -74,7 +74,7 @@ jobs:
name: Test Linux (latest stable Rust) name: Test Linux (latest stable Rust)
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable - uses: dtolnay/rust-toolchain@stable
- run: cargo +stable test - run: cargo +stable test
@ -82,7 +82,7 @@ jobs:
name: Output Regression Test name: Output Regression Test
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.65.0 - uses: dtolnay/rust-toolchain@1.65.0
- name: Generate output for all sample files - name: Generate output for all sample files
run: ./sample_files/compare_all.sh run: ./sample_files/compare_all.sh
@ -93,7 +93,7 @@ jobs:
name: Check Linux Packaging name: Check Linux Packaging
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.65.0 - uses: dtolnay/rust-toolchain@1.65.0
- run: cargo package --allow-dirty - run: cargo package --allow-dirty
@ -101,7 +101,7 @@ jobs:
name: Rustfmt name: Rustfmt
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.65.0 - uses: dtolnay/rust-toolchain@1.65.0
- run: cargo fmt --all -- --check - run: cargo fmt --all -- --check
@ -109,7 +109,7 @@ jobs:
name: Actionlint name: Actionlint
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: raven-actions/actionlint@v1 - uses: raven-actions/actionlint@v2
with: with:
shellcheck: false shellcheck: false

@ -3,7 +3,7 @@ authors = ["Wilfred Hughes"]
language = "en" language = "en"
src = "src" src = "src"
title = "Difftastic Manual" title = "Difftastic Manual"
description = "The manual for difftastic, the structural dif tool" description = "The manual for difftastic, the structural diff tool"
[output.html] [output.html]
git-repository-url = "https://github.com/wilfred/difftastic" git-repository-url = "https://github.com/wilfred/difftastic"

@ -32,7 +32,7 @@ Languages: [~10 programming
languages](https://github.com/GumTreeDiff/gumtree/wiki/Languages) languages](https://github.com/GumTreeDiff/gumtree/wiki/Languages)
Parser: Several, including [srcML](https://www.srcml.org/) Parser: Several, including [srcML](https://www.srcml.org/)
Algorithm: Top-down, then bottom-up Algorithm: Top-down, then bottom-up
Ouput: HTML, Swing GUI, or text Output: HTML, Swing GUI, or text
[GumTree](https://github.com/GumTreeDiff/gumtree) can parse several [GumTree](https://github.com/GumTreeDiff/gumtree) can parse several
programming languages and then performs a tree-based diff, outputting programming languages and then performs a tree-based diff, outputting
@ -116,5 +116,3 @@ Output: CLI colours
[Semantically meaningful S-expression diff: Tree-diff for lisp source [Semantically meaningful S-expression diff: Tree-diff for lisp source
code](https://archive.fosdem.org/2021/schedule/event/sexpressiondiff/) code](https://archive.fosdem.org/2021/schedule/event/sexpressiondiff/)
was presented at FOSDEM 2021. was presented at FOSDEM 2021.

@ -1103,7 +1103,7 @@ mod tests {
} }
} }
/// Ignore the syntax highighting kind when comparing /// Ignore the syntax highlighting kind when comparing
/// atoms. Sometimes changing delimiter wrapping can change /// atoms. Sometimes changing delimiter wrapping can change
/// whether a parser thinks that a node is e.g. a type. /// whether a parser thinks that a node is e.g. a type.
#[test] #[test]

@ -3,7 +3,7 @@ authors = ["Wilfred Hughes"]
language = "zh-CN" language = "zh-CN"
src = "src" src = "src"
title = "Difftastic Manual" title = "Difftastic Manual"
description = "The manual for difftastic, the structural dif tool" description = "The manual for difftastic, the structural diff tool"
[output.html] [output.html]
git-repository-url = "https://github.com/wilfred/difftastic" git-repository-url = "https://github.com/wilfred/difftastic"