Skip to content

Commit

Permalink
Post commit job setup
Browse files Browse the repository at this point in the history
  • Loading branch information
pv72895 committed Jun 18, 2024
1 parent 6e1add3 commit fc26afb
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 23 deletions.
27 changes: 4 additions & 23 deletions .github/workflows/main.yml → .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,21 @@

name: CI

permissions: read-all

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events
pull_request:
branches: [main]
push:
branches:
- trunk-merge/**

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
name: Test Status 1
name: Important Tests 1

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -33,20 +29,7 @@ jobs:
anotherBuild:
# The type of runner that the job will run on
runs-on: ubuntu-latest
name: Test Status 2

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

- name: Run Tests
run: ./sleep.sh

anotherAnotherBuild:
# The type of runner that the job will run on
runs-on: ubuntu-latest
name: Test Status 3
name: Important Tests 2

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -55,5 +38,3 @@ jobs:

- name: Run Tests
run: ./sleep.sh
# - name: Fail on purpose
# run: exit 1
28 changes: 28 additions & 0 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This is a basic workflow to help you get started with Actions

name: Post Commit

permissions: read-all

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events
push:
branches:
- main

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
name: Post Commit Validation

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

- name: Run Tests
run: ./sleep.sh

0 comments on commit fc26afb

Please sign in to comment.