Skip to content

Commit

Permalink
Avoid running tests and static analysis on tags (#1981)
Browse files Browse the repository at this point in the history
  • Loading branch information
sverdlov93 authored May 21, 2023
1 parent 6ed5e5a commit 6e7ad33
Show file tree
Hide file tree
Showing 17 changed files with 72 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/accessTests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Access Tests
on:
push:
branches:
- '**'
tags-ignore:
- '**'
# Triggers the workflow on labeled PRs only.
pull_request_target:
types: [ labeled ]
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: "Static Analysis"
on: [push, pull_request]
on:
push:
branches:
- '**'
tags-ignore:
- '**'
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/artifactoryTests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Artifactory Tests
on:
push:
branches:
- '**'
tags-ignore:
- '**'
# Triggers the workflow on labeled PRs only.
pull_request_target:
types: [ labeled ]
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/distributionTests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Distribution Tests
on:
push:
branches:
- '**'
tags-ignore:
- '**'
# Triggers the workflow on labeled PRs only.
pull_request_target:
types: [labeled]
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/dockerTests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Docker Tests
on:
push:
branches:
- '**'
tags-ignore:
- '**'
# Triggers the workflow on labeled PRs only.
pull_request_target:
types: [labeled]
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/frogbot-scan-and-fix.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: "Frogbot Scan and Fix"
on:
push:
tags-ignore:
- '**'
# Creating fix pull requests will be triggered by any push to one of the these branches.
# You can add or replace to any branch you want to open fix pull requests for.
branches:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/goTests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Go Tests
on:
push:
branches:
- '**'
tags-ignore:
- '**'
# Triggers the workflow on labeled PRs only.
pull_request_target:
types: [labeled]
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/gradleTests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Gradle Tests
on:
push:
branches:
- '**'
tags-ignore:
- '**'
# Triggers the workflow on labeled PRs only.
pull_request_target:
types: [labeled]
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/mavenTests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Maven Tests
on:
push:
branches:
- '**'
tags-ignore:
- '**'
# Triggers the workflow on labeled PRs only.
pull_request_target:
types: [ labeled ]
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/npmTests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: npm Tests
on:
push:
branches:
- '**'
tags-ignore:
- '**'
# Triggers the workflow on labeled PRs only.
pull_request_target:
types: [labeled]
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/nugetTests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: NuGet Tests
on:
push:
branches:
- '**'
tags-ignore:
- '**'
# Triggers the workflow on labeled PRs only.
pull_request_target:
types: [ labeled ]
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pluginsTests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Plugins Tests
on:
push:
branches:
- '**'
tags-ignore:
- '**'
# Triggers the workflow on labeled PRs only.
pull_request_target:
types: [labeled]
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/podmanTests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Podman Tests
on:
push:
branches:
- '**'
tags-ignore:
- '**'
# Triggers the workflow on labeled PRs only.
pull_request_target:
types: [labeled]
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pythonTests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Python Tests
on:
push:
branches:
- '**'
tags-ignore:
- '**'
# Triggers the workflow on labeled PRs only.
pull_request_target:
types: [ labeled ]
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/scriptTests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: Scripts Tests
on: [push, pull_request]
on:
push:
branches:
- '**'
tags-ignore:
- '**'
pull_request:
# Ensures that only the latest commit is running for each PR at a time.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.ref }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/transferTests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Transfer Tests
on:
push:
branches:
- '**'
tags-ignore:
- '**'
# Triggers the workflow on labeled PRs only.
pull_request_target:
types: [labeled]
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/xrayTests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Xray Tests
on:
push:
branches:
- '**'
tags-ignore:
- '**'
# Triggers the workflow on labeled PRs only.
pull_request_target:
types: [ labeled ]
Expand Down

0 comments on commit 6e7ad33

Please sign in to comment.