Skip to content

Commit

Permalink
Standardize CI triggers (#1265)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenButtolph authored Mar 30, 2023
1 parent 5aff88b commit 0399745
Show file tree
Hide file tree
Showing 15 changed files with 38 additions and 40 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/buf-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ name: Lint proto files

on:
push:
tags:
- "*"
branches:
- master
- dev
pull_request:

permissions:
contents: read
Expand Down
26 changes: 0 additions & 26 deletions .github/workflows/build-and-test-mac-windows.yml

This file was deleted.

8 changes: 7 additions & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@ name: Build + Unit Tests

on:
push:
tags:
- "*"
branches:
- master
- dev
pull_request:

jobs:
run_build_unit_tests:
name: build_unit_test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-12, ubuntu-20.04, ubuntu-22.04, windows-latest, [self-hosted, linux, ARM64, focal],[self-hosted, linux, ARM64, jammy]]
os: [macos-12, ubuntu-20.04, ubuntu-22.04, windows-2022, [self-hosted, linux, ARM64, focal], [self-hosted, linux, ARM64, jammy]]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/build-linux-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
tag:
description: 'Tag to include in artifact name'
required: true

push:
tags:
- "*"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-macos-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
required: true
push:
tags:
- "*" # Push events to every tag
- "*"

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-public-api.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: build-public-ami

on:
push:
tags:
- "*"
workflow_dispatch:
inputs:
tag:
description: 'Tag to create AMI from'
required: true
push:
tags:
- "*"

jobs:
build-public-ami-and-upload:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-win-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
required: true
push:
tags:
- "*" # Push events to every tag
- "*"

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ name: Build on supported platforms

on:
push:
tags:
- "*"
branches:
- master
- dev
pull_request:

permissions:
contents: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
branches: [master, dev]
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
branches: [master, dev]
schedule:
- cron: "44 11 * * 4"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/net-outage-sim.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: network-outage-simulation

on:
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string
# Run every day at 7 AM. (The database backup is created around 5 AM.)
- cron: "0 7 * * *"
workflow_dispatch:

jobs:
run_sim:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_docker_image.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Publish Docker Image

on:
workflow_dispatch:
push:
tags:
- "*"
branches:
- master
- dev
workflow_dispatch:

jobs:
publish_docker_image:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-kurtosis-tests-full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Kurtosis Tests Full
on:
push:
tags:
- "*" # Push events to every tag
- "*"
branches:
- master
- dev
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Static analysis
on:
push:
tags-ignore:
- "*" # Ignores all tags
branches-ignore:
tags:
- "*"
branches:
- master
- dev
pull_request:

jobs:
run_static_analysis:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ name: Test e2e

on:
push:
tags:
- "*"
branches:
- master
- dev
pull_request:

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ name: Test upgrade

on:
push:
tags:
- "*"
branches:
- master
- dev
pull_request:

Expand Down

0 comments on commit 0399745

Please sign in to comment.