-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Frontend][Version][Update] lexicon version v2.2.0 (#72)
* lexicon version 2.2.0 * disable detox test
- Loading branch information
1 parent
3bc29a1
commit 03f2ca0
Showing
397 changed files
with
18,272 additions
and
957 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
name: New Feature | ||
about: A new Lexicon feature | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
## Description | ||
|
||
## Acceptance Criteria | ||
- [ ] | ||
|
||
## Guidance |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Manually Delete BuildJet Cache | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
cache_key: | ||
description: 'BuildJet Cache Key to Delete' | ||
required: true | ||
type: string | ||
jobs: | ||
manually-delete-buildjet-cache: | ||
runs-on: buildjet-2vcpu-ubuntu-2204 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- uses: buildjet/cache-delete@v1 | ||
with: | ||
cache_key: ${{ inputs.cache_key }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
name: E2E test android | ||
|
||
on: workflow_call | ||
|
||
jobs: | ||
e2e-test-android: | ||
runs-on: ${{matrix.runs-on}} | ||
name: Android Test ${{matrix.runs-on}} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
runs-on: [buildjet-4vcpu-ubuntu-2204] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- uses: buildjet/setup-node@v4 | ||
with: | ||
node-version: '20.x' | ||
|
||
- name: Configure JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '11' | ||
|
||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | ||
|
||
- uses: buildjet/cache@v4 | ||
id: yarn-cache | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Install dependencies | ||
run: yarn | ||
|
||
- name: Generate files | ||
run: yarn generate | ||
|
||
- name: Cache Detox build | ||
id: cache-detox-build | ||
uses: buildjet/cache@v4 | ||
with: | ||
path: frontend/android | ||
key: ${{ runner.os }}-detox-build | ||
|
||
- name: Expo prebuild android and build detox | ||
if: steps.cache-detox-build.outputs.cache-hit != 'true' | ||
run: | | ||
cd frontend | ||
npx expo prebuild --platform android | ||
yarn tests:android:build | ||
- name: Setup Detox | ||
run: | | ||
cd frontend | ||
npm install -g detox-cli | ||
detox clean-framework-cache && yarn detox build-framework-cache | ||
- name: Gradle cache | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name: AVD cache | ||
uses: buildjet/cache@v3 | ||
id: avd-cache | ||
with: | ||
path: | | ||
~/.android/avd/* | ||
~/.android/adb* | ||
key: avd-28 | ||
|
||
- name: create AVD and generate snapshot for caching | ||
if: steps.avd-cache.outputs.cache-hit != 'true' | ||
uses: reactivecircus/android-emulator-runner@v2 | ||
with: | ||
api-level: 28 | ||
target: google_apis | ||
arch: x86 | ||
profile: pixel_5 | ||
avd-name: Pixel_5_API_28 | ||
force-avd-creation: false | ||
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | ||
disable-animations: false | ||
script: echo "Generated AVD snapshot for caching." | ||
|
||
- name: Run Test | ||
timeout-minutes: 25 | ||
uses: reactivecircus/android-emulator-runner@v2 | ||
with: | ||
api-level: 28 | ||
target: google_apis | ||
arch: x86 | ||
profile: pixel_5 | ||
avd-name: Pixel_5_API_28 | ||
force-avd-creation: false | ||
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | ||
disable-animations: true | ||
script: bash ${{ github.workspace }}/frontend/scripts/android-E2E.sh | ||
|
||
- name: upload artifacts | ||
if: always() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: android-artifacts-${{matrix.runs-on}} | ||
path: frontend/artifacts/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Path Filtering | ||
|
||
on: | ||
workflow_call: | ||
outputs: | ||
frontend-changes: | ||
description: 'this is lexicon app changes status' | ||
value: ${{ jobs.path-filters.outputs.frontend-changes }} | ||
frontendSrc-changes: | ||
description: 'this is lexicon app src only status' | ||
value: ${{ jobs.path-filters.outputs.frontendSrc-changes }} | ||
backend-changes: | ||
description: 'this is Backend Prose changes status' | ||
value: ${{ jobs.path-filters.outputs.backend-changes }} | ||
|
||
jobs: | ||
path-filters: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
frontend-changes: ${{ steps.filter-frontend.outputs.isUpdated }} | ||
frontendSrc-changes: ${{ steps.filter-frontendSrc.outputs.isUpdated }} | ||
backend-changes: ${{ steps.filter-backend.outputs.isUpdated }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: dorny/paths-filter@v3 | ||
id: filter | ||
with: | ||
filters: | | ||
backend: | ||
- 'api/**' | ||
frontend: | ||
- 'frontend/**' | ||
frontendSrc: | ||
- 'frontend/src/**' | ||
# run only if 'backend' files were changed | ||
- name: Output filter Backend Prose | ||
id: filter-backend | ||
if: steps.filter.outputs.backend == 'true' | ||
run: echo "isUpdated=true" >> $GITHUB_OUTPUT | ||
|
||
# run only if 'frontend' files were changed | ||
- name: Output filter Lexicon | ||
id: filter-frontend | ||
if: steps.filter.outputs.frontend == 'true' | ||
run: echo "isUpdated=true" >> $GITHUB_OUTPUT | ||
|
||
# run only if 'frontend scene and component' files were changed | ||
- name: Output filter Lexicon src | ||
id: filter-frontendSrc | ||
if: steps.filter.outputs.frontendSrc == 'true' | ||
run: echo "isUpdated=true" >> $GITHUB_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: test | ||
|
||
on: workflow_call | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.x' | ||
|
||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | ||
|
||
- uses: actions/cache@v4 | ||
id: yarn-cache | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Install dependencies | ||
run: yarn | ||
|
||
- name: Generate files | ||
run: yarn generate | ||
|
||
- name: Run tests | ||
run: yarn test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM keymetrics/pm2:16-alpine | ||
FROM keymetrics/pm2:18-alpine | ||
|
||
WORKDIR /app | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.