Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: James Talton <[email protected]>
  • Loading branch information
jamestalton committed Aug 29, 2024
1 parent bf3c980 commit 359537f
Show file tree
Hide file tree
Showing 7 changed files with 139 additions and 104 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/awx-component.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: AWX Component

on:
pull_request:
paths:
- 'cypress/support/**'
- 'frontend/awx/**'
- 'frontend/common/**'
- 'framework/**'

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
awx:
name: AWX
uses: ./.github/workflows/component.yml
with:
directory: frontend/awx
42 changes: 42 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Checks

on:
pull_request:

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
checks:
name: Checks
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
script: [tsc,tsc:framework,eslint,prettier]
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20

- name: PreCache
run: npm version 0.0.0 --no-git-tag-version

- name: Cache dependencies
id: cache
uses: actions/cache@v4
with:
path: |
./node_modules
/home/runner/.cache/Cypress
key: modules-${{ hashFiles('package-lock.json') }}

- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci

- name: Run script ${{ matrix.script }}
run: npm run ${{ matrix.script }}
19 changes: 19 additions & 0 deletions .github/workflows/common-component.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Common Component

on:
pull_request:
paths:
- 'cypress/support/**'
- 'frontend/common/**'
- 'framework/**'

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
awx:
name: Common
uses: ./.github/workflows/component.yml
with:
directory: frontend/common
20 changes: 20 additions & 0 deletions .github/workflows/eda-component.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: EDA Component

on:
pull_request:
paths:
- 'cypress/support/**'
- 'frontend/eda/**'
- 'frontend/common/**'
- 'framework/**'

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
awx:
name: EDA
uses: ./.github/workflows/component.yml
with:
directory: frontend/eda
18 changes: 18 additions & 0 deletions .github/workflows/framework-component.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Framework Component

on:
pull_request:
paths:
- 'cypress/support/**'
- 'framework/**'

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
awx:
name: Framework
uses: ./.github/workflows/component.yml
with:
directory: frontend/framework
20 changes: 20 additions & 0 deletions .github/workflows/hub-component.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: HUB Component

on:
pull_request:
paths:
- 'cypress/support/**'
- 'frontend/hub/**'
- 'frontend/common/**'
- 'framework/**'

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
awx:
name: HUB
uses: ./.github/workflows/component.yml
with:
directory: frontend/hub
104 changes: 0 additions & 104 deletions .github/workflows/pull-request.yml

This file was deleted.

0 comments on commit 359537f

Please sign in to comment.