Skip to content

Commit

Permalink
chore(ci): try to upgrade actions
Browse files Browse the repository at this point in the history
  • Loading branch information
HoKim98 committed Jul 30, 2024
1 parent 63e5338 commit e48e952
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 31 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install toolchain
uses: actions-rs/toolchain@v1
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
override: true
profile: minimal

- name: Install trunk
uses: jetli/trunk-action@v0.1.0
uses: jetli/trunk-action@v0
with:
version: "latest"

Expand All @@ -49,14 +47,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install toolchain
uses: actions-rs/toolchain@v1
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
override: true
profile: minimal

- name: Install dependencies
run: |
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install toolchain
uses: actions-rs/toolchain@v1
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
override: true
profile: minimal
components: clippy

- name: Check clippy
run: cargo clippy --package cassette --target wasm32-unknown-unknown --features 'full,experimental' --verbose -- -D warnings
Expand All @@ -39,14 +38,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install toolchain
uses: actions-rs/toolchain@v1
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
components: clippy

- name: Install dependencies
run: |
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/gh_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install toolchain
uses: actions-rs/toolchain@v1
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
override: true
profile: minimal

- name: Install trunk
uses: jetli/trunk-action@v0.1.0
uses: jetli/trunk-action@v0
with:
version: "latest"

Expand Down
17 changes: 8 additions & 9 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install toolchain
uses: actions-rs/toolchain@v1
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
target: wasm32-unknown-unknown

- name: Install cargo-deny
run: cargo install cargo-deny
Expand All @@ -41,14 +40,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install toolchain
uses: actions-rs/toolchain@v1
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
target: wasm32-unknown-unknown
components: rustfmt

- name: Run rustfmt
run: rustfmt --edition 2021 --check $(find ./crates -type f -iname '*.rs')
uses: actions-rust-lang/rustfmt@v1

0 comments on commit e48e952

Please # to comment.