Skip to content

Commit

Permalink
cicd: add a new workflow called PR_Validation (intel#5546)
Browse files Browse the repository at this point in the history
* add PR_Validation workflow

* test

* test

* test

* test

* test

* test

* test

* add friesian ut to PR validation

* revert changes

* add dllib ut

* test

* revert
  • Loading branch information
liu-shaojun authored and ForJadeForest committed Sep 20, 2022
1 parent 86cff7c commit a2a69e5
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions .github/workflows/PR_validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: PR Validation

on:
push:
paths:
- 'scala/friesian/**'
- '.github/actions/friesian-scala-ut-action/action.yml'
- 'scala/dllib/**'
- '.github/actions/dllib-scala-ut-action/action.yml'
pull_request:
branches: [ main ]
paths:
- 'scala/friesian/**'
- '.github/actions/friesian-scala-ut-action/action.yml'
- 'scala/dllib/**'
- '.github/actions/dllib-scala-ut-action/action.yml'

permissions:
contents: read
packages: write

jobs:
changes:
name: Paths filter
runs-on: [self-hosted, Gondolin, ubuntu-20.04-lts]
outputs:
friesian: ${{ steps.filter.outputs.friesian }}
dllib: ${{ steps.filter.outputs.dllib }}
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
friesian:
- 'scala/friesian/**'
- '.github/actions/friesian-scala-ut-action/action.yml'
dllib:
- 'scala/dllib/**'
- '.github/actions/dllib-scala-ut-action/action.yml'
Friesian-Scala-UT:
needs: changes
if: ${{ needs.changes.outputs.friesian == 'true' }}
runs-on: [ self-hosted, ubuntu-20.04-lts, CLX, AVX512, Ettenmoors ]

steps:
- uses: actions/checkout@v3
- name: Set up JDK8
uses: ./.github/actions/jdk-setup-action
- name: Set up maven
uses: ./.github/actions/maven-setup-action
- name: Run test
uses: ./.github/actions/dllib-scala-ut-action


Dllib-Scala-UT:
needs: changes
if: ${{ needs.changes.outputs.dllib == 'true' }}
runs-on: [ self-hosted, Gondolin, ubuntu-20.04-lts ]

steps:
- uses: actions/checkout@v3
- name: Set up JDK8
uses: ./.github/actions/jdk-setup-action
- name: Set up maven
uses: ./.github/actions/maven-setup-action
- name: Run test
uses: ./.github/actions/dllib-scala-ut-action

0 comments on commit a2a69e5

Please sign in to comment.