diff --git a/.github/workflows/PlatformIO-Build.yml b/.github/workflows/PlatformIO-Build.yml index c3992b0..d11c4b0 100644 --- a/.github/workflows/PlatformIO-Build.yml +++ b/.github/workflows/PlatformIO-Build.yml @@ -11,4 +11,4 @@ jobs: runs-on: ubuntu-latest steps: - name: PlatformIO Build - uses: ./.github/actions/platformio-build@feat/DevOps_Auto_build_for_Update_Packages + uses: TheRealKasumi/TesLight/.github/actions/platformio-build@feat/DevOps_Auto_build_for_Update_Packages diff --git a/.github/workflows/build_teslight_update_packaging_tool.yml b/.github/workflows/build_teslight_update_packaging_tool.yml index eadad30..9ae7f3d 100644 --- a/.github/workflows/build_teslight_update_packaging_tool.yml +++ b/.github/workflows/build_teslight_update_packaging_tool.yml @@ -128,11 +128,11 @@ jobs: fetch-depth: 0 - name: PlatformIO Build - uses: ./.github/actions/platformio-build@feat/DevOps_Auto_build_for_Update_Packages + uses: TheRealKasumi/TesLight/.github/actions/platformio-build@feat/DevOps_Auto_build_for_Update_Packages # TODO replace with: uses: ./.github/actions/platformio-build - name: UI Build - uses: ./.github/actions/ui-build@feat/DevOps_Auto_build_for_Update_Packages + uses: TheRealKasumi/TesLight/.github/actions/ui-build@feat/DevOps_Auto_build_for_Update_Packages # TODO replace with: uses: ./.github/actions/ui-build - name: Download a single artifact diff --git a/.github/workflows/ui-build.yml b/.github/workflows/ui-build.yml new file mode 100644 index 0000000..3b76485 --- /dev/null +++ b/.github/workflows/ui-build.yml @@ -0,0 +1,23 @@ +name: UI build + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + workflow_dispatch: + workflow_call: + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: UI lint + uses: TheRealKasumi/TesLight/.github/actions/ui-lint@feat/DevOps_Auto_build_for_Update_Packages + + build: + needs: [lint] + runs-on: ubuntu-latest + steps: + - name: UI build + uses: TheRealKasumi/TesLight/.github/actions/ui-build@feat/DevOps_Auto_build_for_Update_Packages diff --git a/.github/workflows/ui.yml b/.github/workflows/ui.yml deleted file mode 100644 index c632caf..0000000 --- a/.github/workflows/ui.yml +++ /dev/null @@ -1,96 +0,0 @@ -name: UI - -on: - push: - branches: ["main"] - pull_request: - branches: ["main"] - workflow_dispatch: - workflow_call: - -jobs: - lint: - runs-on: ubuntu-latest - - defaults: - run: - working-directory: ./ui - - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Install Node.js - uses: actions/setup-node@v3 - with: - node-version: 18 - - - uses: pnpm/action-setup@v2 - name: Install pnpm - id: pnpm-install - with: - version: 7 - run_install: false - - - name: Get pnpm store directory - id: pnpm-cache - shell: bash - run: | - echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT - - - uses: actions/cache@v3 - name: Setup pnpm cache - with: - path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- - - - name: Install dependencies - run: pnpm install - - - name: Lint - run: pnpm lint - - build: - runs-on: ubuntu-latest - - defaults: - run: - working-directory: ./ui - - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Install Node.js - uses: actions/setup-node@v3 - with: - node-version: 18 - - - uses: pnpm/action-setup@v2 - name: Install pnpm - id: pnpm-install - with: - version: 7 - run_install: false - - - name: Get pnpm store directory - id: pnpm-cache - shell: bash - run: | - echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT - - - uses: actions/cache@v3 - name: Setup pnpm cache - with: - path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- - - - name: Install dependencies - run: pnpm install - - - name: Build - run: pnpm build