From b9c5d2851e0431eec961356f77234a5c651ea9b5 Mon Sep 17 00:00:00 2001 From: Ron de las Alas Date: Thu, 2 Nov 2023 09:31:11 -0400 Subject: [PATCH] ci: test extra jobs --- .github/workflows/ci-cd.yml | 97 +++++++++++++++++++++++++------------ 1 file changed, 66 insertions(+), 31 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 2fddd56a6b0..624e95d34d1 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -21,6 +21,9 @@ jobs: runs-on: ubuntu-latest env: TRIGGER_DEPLOY: ${{ startsWith(github.ref, 'refs/heads/master') }} + DETECT_CHROMEDRIVER_VERSION: "true" + JEST_JUNIT_OUTPUT_DIR: test-results + NODE_OPTIONS: --max-old-space-size=4000 steps: - uses: actions/checkout@v4 - uses: wagoid/commitlint-github-action@v5 @@ -29,7 +32,6 @@ jobs: with: cache: "npm" node-version-file: ".nvmrc" - - name: Info run: | cat <> $GITHUB_ENV + # - name: Generate release version + # run: | + # export RELEASE_TIMESTAMP=$(date +'%Y%m%d%H%M%S') + # export VPKG=$($(npm bin)/json -f package.json version) + # export VERSION=${VPKG}-prerelease.${RELEASE_TIMESTAMP} - if [[ "${GITHUB_REF##*/}" == hotfix/* ]]; then - echo "NPM_TAG=hotfix" >> $GITHUB_ENV - else - echo "NPM_TAG=latest" >> $GITHUB_ENV - fi + # echo "RELEASE_VERSION=${VERSION}" >> $GITHUB_ENV - - name: Build - run: | - npm run build - npm --no-git-tag-version version $RELEASE_VERSION + # if [[ "${GITHUB_REF##*/}" == hotfix/* ]]; then + # echo "NPM_TAG=hotfix" >> $GITHUB_ENV + # else + # echo "NPM_TAG=latest" >> $GITHUB_ENV + # fi - - name: Semantic release (configured to run dry if branch is other than 'master') - env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - npx --no -- semantic-release $([[ "$TRIGGER_DEPLOY" == "false" ]] && echo "--dry-run") + # - name: Build + # run: | + # npm run build + # npm --no-git-tag-version version $RELEASE_VERSION + + # - name: Semantic release (configured to run dry if branch is other than 'master') + # env: + # NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # run: | + # npx --no -- semantic-release $([[ "$TRIGGER_DEPLOY" == "false" ]] && echo "--dry-run")