Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cicd: add a new workflow called PR_Validation #5546

Merged
merged 13 commits into from
Aug 29, 2022
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