Skip to content

Commit

Permalink
ci: Upgrade most actions (matrix-org#3364)
Browse files Browse the repository at this point in the history
Signed-off-by: Kévin Commaille <[email protected]>
  • Loading branch information
zecakeh authored Apr 30, 2024
1 parent fb9982f commit dc2b9ed
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 32 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/audit-check@v1
- uses: actions/checkout@v4
- uses: actions-rust-lang/audit@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

steps:
- name: Checkout the repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@master
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/bindings_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install protoc
uses: taiki-e/install-action@v2
Expand All @@ -52,7 +52,7 @@ jobs:
save-if: ${{ github.ref == 'refs/heads/main' }}

- name: Get xtask
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: target/debug/xtask
key: "${{ needs.xtask.outputs.cachekey-linux }}"
Expand All @@ -69,7 +69,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

# install protoc in case we end up rebuilding opentelemetry-proto
- name: Install protoc
Expand All @@ -94,7 +94,7 @@ jobs:
save-if: ${{ github.ref == 'refs/heads/main' }}

- name: Get xtask
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: target/debug/xtask
key: "${{ needs.xtask.outputs.cachekey-macos }}"
Expand Down
32 changes: 16 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
Expand All @@ -64,7 +64,7 @@ jobs:
uses: taiki-e/install-action@nextest

- name: Get xtask
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: target/debug/xtask
key: "${{ needs.xtask.outputs.cachekey-linux }}"
Expand All @@ -82,7 +82,7 @@ jobs:

steps:
- name: Checkout the repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
Expand All @@ -96,7 +96,7 @@ jobs:
uses: taiki-e/install-action@nextest

- name: Get xtask
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: target/debug/xtask
key: "${{ needs.xtask.outputs.cachekey-linux }}"
Expand All @@ -114,7 +114,7 @@ jobs:

steps:
- name: Checkout the repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
Expand All @@ -128,7 +128,7 @@ jobs:
uses: taiki-e/install-action@nextest

- name: Get xtask
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: target/debug/xtask
key: "${{ needs.xtask.outputs.cachekey-linux }}"
Expand Down Expand Up @@ -161,7 +161,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install protoc
uses: taiki-e/install-action@v2
Expand Down Expand Up @@ -224,7 +224,7 @@ jobs:

steps:
- name: Checkout the repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
Expand All @@ -233,7 +233,7 @@ jobs:
components: clippy

- name: Install wasm-pack
uses: jetli/wasm-pack-action@v0.4.0
uses: qmaru/wasm-pack-action@v0.5.0
with:
version: v0.10.3

Expand All @@ -252,7 +252,7 @@ jobs:
uses: taiki-e/install-action@nextest

- name: Get xtask
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: target/debug/xtask
key: "${{ needs.xtask.outputs.cachekey-linux }}"
Expand All @@ -273,7 +273,7 @@ jobs:

steps:
- name: Checkout the repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@master
Expand All @@ -292,10 +292,10 @@ jobs:

steps:
- name: Checkout Actions Repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Check the spelling of the files in our repo
uses: crate-ci/typos@v1.17.0
uses: crate-ci/typos@v1.20.10

clippy:
name: Run clippy
Expand All @@ -305,7 +305,7 @@ jobs:

steps:
- name: Checkout the repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install protoc
uses: taiki-e/install-action@v2
Expand All @@ -324,7 +324,7 @@ jobs:
save-if: ${{ github.ref == 'refs/heads/main' }}

- name: Get xtask
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: target/debug/xtask
key: "${{ needs.xtask.outputs.cachekey-linux }}"
Expand Down Expand Up @@ -384,7 +384,7 @@ jobs:

steps:
- name: Checkout the repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

Expand All @@ -94,7 +94,7 @@ jobs:
tool: cargo-tarpaulin

# set up backend for integration tests
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: 3.8

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install protoc
uses: taiki-e/install-action@v2
Expand All @@ -40,7 +40,7 @@ jobs:
toolchain: nightly-2024-02-06

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20

Expand All @@ -60,11 +60,11 @@ jobs:

- name: Upload artifact
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
path: './target/doc/'

- name: Deploy to GitHub Pages
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4
4 changes: 2 additions & 2 deletions .github/workflows/xtask.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Calculate cache key
id: cachekey
Expand All @@ -53,7 +53,7 @@ jobs:
echo "cachekey-${{ matrix.cachekey-id }}=xtask-${{ matrix.cachekey-id }}-${{ hashFiles('Cargo.toml', 'xtask/**') }}" >> $GITHUB_OUTPUT
- name: Check xtask cache
uses: actions/cache@v3
uses: actions/cache@v4
id: xtask-cache
with:
path: target/debug/xtask
Expand Down
4 changes: 3 additions & 1 deletion .typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ WeeChat = "WeeChat"
sing = "sign"
singed = "signed"
singing = "signing"
Nd = "Nd"
ratatui = "ratatui"
# base64 false positives
Nd = "Nd"
Abl = "Abl"

[files]
extend-exclude = [
Expand Down

0 comments on commit dc2b9ed

Please sign in to comment.