diff --git a/.github/workflows/validate-jest-cov-inhouse.yml b/.github/workflows/validate-jest-cov-inhouse.yml new file mode 100644 index 0000000..0ced7c4 --- /dev/null +++ b/.github/workflows/validate-jest-cov-inhouse.yml @@ -0,0 +1,29 @@ +name: Run jest tests with coverage report +on: + workflow_call: + inputs: + runs-on: + description: "Define the type of machine to run the job on" + type: string + required: false + default: '["self-hosted", "Linux", "X64", "bratislava"]' + +jobs: + test: + name: Unit tests + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Pipelines Version + run: | + echo "Pipelines version: 2.0.1" + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: "20" + + - name: Run jest tests and create coverage report + uses: ArtiomTr/jest-coverage-report-action@v2 diff --git a/.github/workflows/validate-jest-cov.yml b/.github/workflows/validate-jest-cov.yml new file mode 100644 index 0000000..9fd716f --- /dev/null +++ b/.github/workflows/validate-jest-cov.yml @@ -0,0 +1,22 @@ +name: Run jest tests with coverage report +on: workflow_call + +jobs: + test: + name: Unit tests + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Pipelines Version + run: | + echo "Pipelines version: 2.0.1" + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: "20" + + - name: Run jest tests and create coverage report + uses: ArtiomTr/jest-coverage-report-action@v2