From b4019c57ae4e14c1fc370f4f29a273e32b730e9a Mon Sep 17 00:00:00 2001 From: Matt Carvin <90224411+mcarvin8@users.noreply.github.com> Date: Sun, 15 Sep 2024 12:36:09 -0400 Subject: [PATCH] refactor: use salesforce cli unit test workflow --- .github/workflows/non-release-build.yml | 5 ++--- .github/workflows/release.yml | 7 +++---- .github/workflows/reusable-build.yml | 27 ------------------------- 3 files changed, 5 insertions(+), 34 deletions(-) delete mode 100644 .github/workflows/reusable-build.yml diff --git a/.github/workflows/non-release-build.yml b/.github/workflows/non-release-build.yml index f8b7556..0b51cbd 100644 --- a/.github/workflows/non-release-build.yml +++ b/.github/workflows/non-release-build.yml @@ -6,6 +6,5 @@ on: - main jobs: - build: - uses: ./.github/workflows/reusable-build.yml - secrets: inherit + unit-tests: + uses: salesforcecli/github-workflows/.github/workflows/unitTest.yml@main diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d22bbbc..fffa30a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,12 +8,11 @@ permissions: pull-requests: write jobs: - build: - uses: ./.github/workflows/reusable-build.yml - secrets: inherit + unit-tests: + uses: salesforcecli/github-workflows/.github/workflows/unitTest.yml@main release: - needs: [build] + needs: [unit-tests] name: Release runs-on: ubuntu-latest steps: diff --git a/.github/workflows/reusable-build.yml b/.github/workflows/reusable-build.yml deleted file mode 100644 index 4f897b6..0000000 --- a/.github/workflows/reusable-build.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Build -on: - workflow_call: - -jobs: - build: - name: Build - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v4.1.1 - - - name: Setup Node - uses: actions/setup-node@v4.0.1 - with: - node-version: 18 - cache: yarn - - - name: Install Dependencies - run: yarn install - - - name: Build - run: yarn build - - - name: Test - run: yarn test