Skip to content

Commit

Permalink
fixed doc-type pr
Browse files Browse the repository at this point in the history
Signed-off-by: Ludvig Liljenberg <lliljenberg@microsoft.com>
  • Loading branch information
ludfjig committed Aug 30, 2023
1 parent edfdbb9 commit 12e8297
Showing 1 changed file with 7 additions and 30 deletions.
37 changes: 7 additions & 30 deletions .github/workflows/porter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,15 @@ on:
pull_request:
branches:
- main
paths-ignore:
- 'docs/**'
env:
GOVERSION: 1.20.7

jobs:
PR_type:
name: Determine PR Type
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3.5.0
- name: Is Doc Only?
id: BUILD
run: "./build/doc-only-build.sh"
shell: bash

Build:
name: Native Compile
needs:
- PR_type
runs-on: ubuntu-latest
if: success() && needs.Setup-pr_type.outputs['pr_type.BUILD.DOCS_ONLY'] == 'false'
steps:
- name: checkout
uses: actions/checkout@v3.5.0
Expand All @@ -44,10 +32,7 @@ jobs:

XBuild:
name: Cross Compile
needs:
- PR_type
runs-on: ubuntu-latest
if: success() && needs.Setup-pr_type.outputs['pr_type.BUILD.DOCS_ONLY'] == 'false'
steps:
- name: checkout
uses: actions/checkout@v3.5.0
Expand All @@ -68,10 +53,9 @@ jobs:

Unit_test:
name: Unit Test
needs:
- PR_type
runs-on: ubuntu-latest
if: success() && needs.Setup-pr_type.outputs['pr_type.BUILD.DOCS_ONLY'] == 'false'
needs:
- Build
steps:
- name: checkout
uses: actions/checkout@v3.5.0
Expand All @@ -87,10 +71,7 @@ jobs:

VetLint:
name: Vet and Lint
needs:
- PR_type
runs-on: ubuntu-latest
if: success() && needs.Setup-pr_type.outputs['pr_type.BUILD.DOCS_ONLY'] == 'false'
steps:
- name: checkout
uses: actions/checkout@v3.5.0
Expand All @@ -108,11 +89,11 @@ jobs:
shell: bash

Build-docker-images:
name: Build Docker Images
needs:
- PR_type
- XBuild
runs-on: ubuntu-latest
if: success() && needs.Setup-pr_type.outputs['pr_type.BUILD.DOCS_ONLY'] == 'false'
if: success()
steps:
- name: checkout
uses: actions/checkout@v3.5.0
Expand All @@ -131,12 +112,8 @@ jobs:
run: mage BuildImages

Smoke-test:
name: Run smoke tests on
needs:
- PR_type
- XBuild
name: Smoke Test
runs-on: ubuntu-latest
if: success() && needs.Setup-pr_type.outputs['pr_type.BUILD.DOCS_ONLY'] == 'false'
steps:
- name: checkout
uses: actions/checkout@v3.5.0
Expand Down

0 comments on commit 12e8297

Please sign in to comment.