Skip to content

Commit

Permalink
feat!: Complete redesign, namespaces support, refactor (#3109)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Complete redesign, brand new API
  • Loading branch information
stepan662 authored Jan 11, 2023
1 parent 5bbaada commit 1978b91
Show file tree
Hide file tree
Showing 644 changed files with 27,900 additions and 31,887 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ahmadnassri/action-dependabot-auto-merge@v2
with:
config: 'dummy-config'
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ jobs:
fetch-depth: 0

- name: Build
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: '16.x'
node-version: '16.15.1'

- uses: pnpm/action-setup@v2.0.1
- uses: pnpm/action-setup@v2.2.4
name: Install pnpm
id: pnpm-install
with:
version: 7
version: 7.16.0
run_install: false

- name: Create branch
Expand All @@ -36,12 +36,12 @@ jobs:
git config --local user.name "Tolgee Machine"
- name: Install
run: pnpm i
run: pnpm install --no-frozen-lockfile

- name: Update version locally
run: |
lerna version --yes --conventional-commits --conventional-prerelease --preid rc.$(git rev-parse --short HEAD) \
--force-publish --no-push --no-git-tag-version
--force-publish --no-push --no-git-tag-version --exact
# Set TOLGEE_UI_VERSION for @tolgee/core build
- name: Set env
Expand All @@ -55,7 +55,7 @@ jobs:
git stash
git push --follow-tags -u origin $(git rev-parse --abbrev-ref HEAD)
lerna version --yes --conventional-commits --conventional-prerelease --preid rc.$(git rev-parse --short HEAD) \
--force-publish --create-release github
--force-publish --exact --create-release github
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ jobs:
]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
path: root

- name: Setup node
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: '16.x'
node-version: '16.15.1'

- run: npm install -g [email protected]

Expand All @@ -43,7 +43,7 @@ jobs:

- run: mkdir -p testapps/${{ matrix.project }}

- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
token: '${{ secrets.TOLGEE_MACHINE_PAT }}'
repository: tolgee/${{ matrix.project }}-example
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ jobs:
fetch-depth: 0

- name: Build
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: '16.x'
node-version: '16.15.1'

- uses: pnpm/action-setup@v2.0.1
- uses: pnpm/action-setup@v2.2.4
name: Install pnpm
id: pnpm-install
with:
version: 7
version: 7.16.0
run_install: false

- name: Set git globals
Expand All @@ -37,7 +37,7 @@ jobs:

- name: Update version locally
run: |
lerna version --yes --conventional-commits \
lerna version --yes --conventional-commits --exact \
--no-push --no-git-tag-version
# Set TOLGEE_UI_VERSION for @tolgee/core build
Expand All @@ -63,7 +63,7 @@ jobs:
- name: Recreate release with push
run: |
git stash
lerna version --yes --conventional-commits\
lerna version --yes --conventional-commits --exact \
--create-release github
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
158 changes: 158 additions & 0 deletions .github/workflows/report-intermittent-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
name: Report intermittent E2E Tests

on:
schedule:
- cron: '42 04 * * *'

jobs:
test:
name: 'Test'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '16.15.1'

- uses: pnpm/[email protected]
name: Install pnpm
id: pnpm-install
with:
version: 7.16.0
run_install: false

- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: .pnpm-store/v3
key: ${{ runner.os }}-pnpm-test-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-test-
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@v3
with:
path: .turbo
key: turbo-${{ github.job }}-${{ github.sha }}
restore-keys: |
turbo-${{ github.job }}-
- name: Install
run: pnpm install --no-frozen-lockfile

- name: Build all packages
run: pnpm build || pnpm build

- name: Test
run: pnpm run test

cypress-prepare:
name: 'Cypress prepare'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '16.15.1'

- uses: pnpm/[email protected]
name: Install pnpm
id: pnpm-install
with:
version: 7.16.0
run_install: false

- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: |
.pnpm-store/v3
~/.cache/Cypress
key: ${{ runner.os }}-pnpm-cypress-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-cypress-
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@v3
with:
path: .turbo
key: turbo-cypress-${{ github.sha }}
restore-keys: |
turbo-cypress-
- name: Install
run: pnpm install --no-frozen-lockfile

- name: Build
run: pnpm build || pnpm build

- name: Build e2e
run: pnpm build:e2e

- id: set-dirs
run: echo "::set-output name=dirs::$(ls | jq -R -s -c 'split("\n")[:-1]')"
working-directory: e2e/cypress/e2e

outputs:
dirs: ${{ steps.set-dirs.outputs.dirs }}

cypress:
name: 'Cypress'
# cypress-prepare will install and build everything into cache
needs: cypress-prepare
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
app: ${{ fromJson(needs.cypress-prepare.outputs.dirs) }}

steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '16.15.1'

- uses: pnpm/[email protected]
name: Install pnpm
id: pnpm-install
with:
version: 7.16.0
run_install: false

- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: |
.pnpm-store/v3
~/.cache/Cypress
key: ${{ runner.os }}-pnpm-cypress-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-cypress-
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@v3
with:
path: .turbo
key: turbo-cypress-${{ github.sha }}
restore-keys: |
turbo-cypress-
- name: Install
run: pnpm install --no-frozen-lockfile

- name: Cypress
run: pnpm run e2e run --headed ${{matrix.app}} --stdout prod,dev

- uses: actions/upload-artifact@v2
if: failure()
with:
name: cypress
path: |
e2e/cypress/videos/**/*
e2e/cypress/screenshots/**/*
Loading

0 comments on commit 1978b91

Please sign in to comment.