From 7fa94c624708bcdaad8e9b40ef891d9aa29ffafa Mon Sep 17 00:00:00 2001 From: CristiCanizales Date: Wed, 27 Sep 2023 11:52:30 -0300 Subject: [PATCH] chore: new unit tests --- .github/workflows/unitTests.yml | 42 +++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/unitTests.yml diff --git a/.github/workflows/unitTests.yml b/.github/workflows/unitTests.yml new file mode 100644 index 00000000..9be57ef9 --- /dev/null +++ b/.github/workflows/unitTests.yml @@ -0,0 +1,42 @@ +name: unit testss +on: + push: + branches-ignore: [main] + workflow_dispatch: + +jobs: + unit-tests: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [macos-latest, windows-latest, ubuntu-latest] + nodeVersion: + - 16.15.1 + fail-fast: false + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node_version }} + cache: yarn + - uses: google/wireit@setup-github-actions-caching/v1 + - name: Cache node modules + id: cache-nodemodules + uses: actions/cache@v3 + env: + cache-name: cache-node-modules + with: + path: "**/node_modules" + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} + + - uses: salesforcecli/github-workflows/.github/actions/yarnInstallWithRetries@main + if: ${{ steps.cache-nodemodules.outputs.cache-hit != 'true' }} + - run: yarn build + - uses: nick-fields/retry@943e742917ac94714d2f408a0e8320f2d1fcafcd + env: + SF_DISABLE_TELEMETRY: true + name: yarn test + with: + max_attempts: 2 + command: yarn test + timeout_minutes: 60 \ No newline at end of file