diff --git a/.github/workflows/onPushToMain.yml b/.github/workflows/onPushToMain.yml index 461b4a26..9f072264 100644 --- a/.github/workflows/onPushToMain.yml +++ b/.github/workflows/onPushToMain.yml @@ -6,7 +6,9 @@ on: jobs: tests: - uses: salesforcecli/github-workflows/.github/workflows/unitTest.yml@main + uses: ./.github/workflows/unitTests.yml + with: + branch: main release: runs-on: ubuntu-latest needs: diff --git a/.github/workflows/testCommitExceptMain.yml b/.github/workflows/testCommitExceptMain.yml deleted file mode 100644 index 82b7f8a1..00000000 --- a/.github/workflows/testCommitExceptMain.yml +++ /dev/null @@ -1,9 +0,0 @@ -name: unit tests -on: - push: - branches-ignore: [main] - workflow_dispatch: - -jobs: - unit-tests: - uses: salesforcecli/github-workflows/.github/workflows/unitTest.yml@main \ No newline at end of file diff --git a/.github/workflows/unitTests.yml b/.github/workflows/unitTests.yml index 14c4228c..d8c1f5cc 100644 --- a/.github/workflows/unitTests.yml +++ b/.github/workflows/unitTests.yml @@ -1,8 +1,13 @@ -name: unit testss +name: Unit Tests on: push: branches-ignore: [main] workflow_dispatch: + workflow_call: + inputs: + branch: + type: string + required: false jobs: unit-tests: