Skip to content

Commit

Permalink
chore: restrict workflow triggers to the main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeytimoshin committed Dec 13, 2024
1 parent 84648ef commit 0d98dcc
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 39 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/forester-tests.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
on:
push:
branches:
- "*"
- jorrit/feat-bloomfilter-queues
- main
paths:
- "forester/**"
- "photon-api/**"
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/js.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
on:
push:
branches:
- "*"
- jorrit/feat-bloomfilter-queues
- main
pull_request:
branches:
- "*"
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/light-examples-tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
branches:
- "*"
- main
paths:
- "examples/**"
- "macros/light-sdk-macros/**"
Expand Down Expand Up @@ -34,13 +34,9 @@ jobs:
matrix:
include:
- program: token-escrow-test
sub-tests: '[
"cargo test-sbf -p token-escrow -- --test-threads=1"
]'
# - program: name-service-without-macros-test
# sub-tests: '[
# "cargo test-sbf -p name-service-without-macros -- --test-threads=1"
# ]'
sub-tests: '["cargo test-sbf -p token-escrow -- --test-threads=1"]'
- program: name-service-without-macros-test
sub-tests: '["cargo test-sbf -p name-service-without-macros -- --test-threads=1"]'

steps:
- name: Checkout sources
Expand Down
30 changes: 8 additions & 22 deletions .github/workflows/light-system-programs-tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
branches:
- "*"
- main
paths:
- "programs/**"
- "test-programs/**"
Expand Down Expand Up @@ -41,33 +41,19 @@ jobs:
matrix:
include:
- program: sdk-test-program
sub-tests: '[
"cargo-test-sbf -p sdk-test -- --test-threads=1"
]'
sub-tests: '["cargo-test-sbf -p sdk-test -- --test-threads=1"]'
- program: account-compression
sub-tests: '[
"cargo-test-sbf -p account-compression-test"
]'
sub-tests: '["cargo-test-sbf -p account-compression-test"]'
- program: light-system-program
sub-tests: '[
"cargo-test-sbf -p system-test -- --test-threads=1"
]'
sub-tests: '["cargo-test-sbf -p system-test -- --test-threads=1"]'
- program: light-registry
sub-tests: '[
"cargo-test-sbf -p registry-test -- --test-threads=1"
]'
sub-tests: '["cargo-test-sbf -p registry-test -- --test-threads=1"]'
- program: light-compressed-token
sub-tests: '[
"cargo-test-sbf -p compressed-token-test -- --test-threads=1"
]'
sub-tests: '["cargo-test-sbf -p compressed-token-test -- --test-threads=1"]'
- program: system-cpi-test
sub-tests: '[
"cargo-test-sbf -p system-cpi-test -- --test-threads=1"
]'
sub-tests: '["cargo-test-sbf -p system-cpi-test -- --test-threads=1"]'
- program: random-e2e-test
sub-tests: '[
"RUST_MIN_STACK=8388608 cargo-test-sbf -p e2e-test -- --nocapture --test-threads=1"
]'
sub-tests: '["RUST_MIN_STACK=8388608 cargo-test-sbf -p e2e-test -- --nocapture --test-threads=1"]'
steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
on:
push:
branches:
- "*"
- jorrit/feat-bloomfilter-queues
- main
pull_request:
branches:
- "*"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prover-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Test gnark prover
on:
push:
branches:
- "*"
- main
- 'release/**'
paths:
- "light-prover/**"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release
on:
push:
branches:
- "*"
- main

jobs:
release:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
branches:
- "*"
- main
paths:
- ".cargo/**"
- "**/*.rs"
Expand Down

0 comments on commit 0d98dcc

Please sign in to comment.