Skip to content

Commit

Permalink
unit test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ulfgebhardt committed Nov 20, 2023
1 parent 5b57f8e commit 820a405
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/test.unit.code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "test:unit test code with defined suites"

on: push

jobs:
# only (but most important) job from this workflow required for pull requests
# check results serve as run conditions for all other jobs here
files-changed:
name: Detect File Changes - Frontend
runs-on: ubuntu-latest
outputs:
frontend: ${{ steps.changes.outputs.frontend }}
steps:
- uses: actions/checkout@v3.3.0

- name: Check for frontend file changes
uses: dorny/paths-filter@v2.11.1
id: changes
with:
token: ${{ github.token }}
filters: .github/file-filters.yml
list-files: shell

unit:
if: needs.files-changed.outputs.frontend == 'true'
name: Unit - Frontend
needs: files-changed
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Frontend | Unit
run: npm install && npm run test:unit

0 comments on commit 820a405

Please sign in to comment.