Skip to content

Commit

Permalink
Resolve issue with Rust-Cache action failing silently
Browse files Browse the repository at this point in the history
Resolve issue with Rust-Cache action failing silently
Resolve issue with benchmarks being triggered even when the pre-requisite workflow failed.
  • Loading branch information
itsmesamster authored and DmitryAstafyev committed Dec 6, 2024
1 parent 642540a commit d355970
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
jobs:
invoke_jasmine_tests:
name: Invoke Jasmine performance tests
if: ${{ github.event.workflow_run.conclusion == 'success' }} || ${{ github.event_name }}" == 'workflow_dispatch'
if: ${{ (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') || github.event_name == 'workflow_dispatch' }}
runs-on: self-hosted-runner-ubuntu
steps:
- name: Cleanup build folder
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/lint_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- master
- issue_2083

jobs:
rust_and_ts_lint:
Expand All @@ -27,11 +26,12 @@ jobs:
override: true
- name: Cache Rust dependencies and CLI tool
id: cache-cargo
uses: Swatinem/rust-cache@v2.7.3
uses: Swatinem/rust-cache@v2
with:
key: ${{ runner.os }}-cargo-${{ hashFiles('cli/Cargo.toml', 'cli/Cargo.lock') }}
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.toml', 'Cargo.lock') }}
cache-targets: true
cache-all-crates: "true"
workspaces: cli
- name: Install nj-cli
run: cargo install nj-cli
- name: enable corepack for yarnpkg upgrade
Expand Down Expand Up @@ -76,11 +76,12 @@ jobs:
override: true
- name: Cache Rust dependencies and CLI tool
id: cache-cargo
uses: Swatinem/rust-cache@v2.7.3
uses: Swatinem/rust-cache@v2
with:
key: ${{ runner.os }}-cargo-${{ hashFiles('cli/Cargo.toml', 'cli/Cargo.lock') }}
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.toml', 'Cargo.lock') }}
cache-targets: true
cache-all-crates: "true"
workspaces: cli
- name: Install nj-cli
run: cargo install nj-cli
- name: enable corepack for yarnpkg upgrade
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/pullrequest_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ jobs:
override: true
- name: Cache Rust dependencies and CLI tool
id: cache-cargo
uses: Swatinem/rust-cache@v2.7.3
uses: Swatinem/rust-cache@v2
with:
key: ${{ runner.os }}-cargo-${{ hashFiles('cli/Cargo.toml', 'cli/Cargo.lock') }}
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.toml', 'Cargo.lock') }}
cache-targets: true
cache-all-crates: "true"
workspaces: cli
- name: Install nj-cli
run: cargo install nj-cli
- name: enable corepack for yarnpkg upgrade
Expand Down Expand Up @@ -78,11 +79,12 @@ jobs:
override: true
- name: Cache Rust dependencies and CLI tool
id: cache-cargo
uses: Swatinem/rust-cache@v2.7.3
uses: Swatinem/rust-cache@v2
with:
key: ${{ runner.os }}-cargo-${{ hashFiles('cli/Cargo.toml', 'cli/Cargo.lock') }}
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.toml', 'Cargo.lock') }}
cache-targets: true
cache-all-crates: "true"
workspaces: cli
- name: Install nj-cli
run: cargo install nj-cli
- name: enable corepack for yarnpkg upgrade
Expand Down

0 comments on commit d355970

Please sign in to comment.