Skip to content

Commit

Permalink
Restrict cache trigger event to reduce cache usage
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyCTHsu committed Feb 13, 2025
1 parent 45cce49 commit 55c03ab
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 10 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build-gem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ on:
default: true
push:
branches:
- "**"
- master
pull_request:
branches:
- master

env:
GEM_HOST: 'https://rubygems.pkg.github.com/DataDog'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Static Analysis
on:
push:
branches:
- master
pull_request:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/generate-supported-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: "Generate Supported Versions"

on:
workflow_dispatch:


concurrency:
group: ${{ github.workflow }}
Expand All @@ -20,7 +19,6 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@8388f20e6a9c43cd241131b678469a9f89579f37 # v1.216.0
with:
bundler-cache: true # runs bundle install
ruby-version: "3.3"

- name: Update latest
Expand All @@ -45,6 +43,6 @@ jobs:
as defined from the `gemfile.lock` gem declarations.
Workflow run: [Generate Supported Versions](https://github.com/DataDog/dd-trace-rb/actions/workflows/generate-supported-versions.yml)
This should be tied to tracer releases, or triggered manually.
5 changes: 4 additions & 1 deletion .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ name: Test Nix
on:
push:
branches:
- "**"
- master
pull_request:
branches:
- master

jobs:
test:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Test macOS
on:
push:
branches:
- "**"
- master
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
branches:
- master
jobs:
test-macos:
strategy:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/test-memory-leaks.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: Test for memory leaks
on: [push]
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test-memcheck:
runs-on: ubuntu-24.04
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/test-yjit.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: Test YJIT
on: [push]
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test-yjit:
strategy:
Expand Down

0 comments on commit 55c03ab

Please sign in to comment.