Skip to content

Commit

Permalink
chore: add tests using registry
Browse files Browse the repository at this point in the history
  • Loading branch information
stepan662 committed Aug 21, 2023
1 parent 1e45247 commit 707b3bc
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:

jobs:
test-publish:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -50,6 +50,14 @@ jobs:
- name: Install
run: pnpm install --no-frozen-lockfile --filter='./packages/*'

- name: Create branch
run: git checkout -b test.$(git rev-parse --short HEAD)

- name: Set git globals
run: |
git config --local user.email "[email protected]"
git config --local user.name "Tolgee Machine"
- name: Update version locally
run: |
lerna version prerelease --yes --conventional-prerelease --preid test.$(git rev-parse --short HEAD) \
Expand Down Expand Up @@ -78,9 +86,9 @@ jobs:
dirs: ${{ steps.set-dirs.outputs.dirs }}

cypress:
name: 'Cypress with published packages'
name: 'Cypress'
# cypress-prepare will install and build everything into cache
needs: test-publish
needs: cypress-prepare
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down Expand Up @@ -129,6 +137,14 @@ jobs:
- name: Install
run: pnpm install --no-frozen-lockfile

- name: Create branch
run: git checkout -b test.$(git rev-parse --short HEAD)

- name: Set git globals
run: |
git config --local user.email "[email protected]"
git config --local user.name "Tolgee Machine"
- name: Update version locally
run: |
lerna version prerelease --yes --conventional-prerelease --preid test.$(git rev-parse --short HEAD) \
Expand Down

0 comments on commit 707b3bc

Please sign in to comment.