diff --git a/.github/workflows/backend-build.yml b/.github/workflows/backend-build.yml index a7b8e21abb..d96d6934ae 100644 --- a/.github/workflows/backend-build.yml +++ b/.github/workflows/backend-build.yml @@ -30,22 +30,32 @@ jobs: distribution: "temurin" java-version: "17" cache: maven - - - name: Cache Maven packages - uses: actions/cache@v4 + + - uses: stCarolas/setup-maven@v5 with: - path: ~/.m2 - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- + maven-version: 3.9.0 + + - name: Give permissions + run: | + sudo chmod 777 ../ + shell: bash - name: Run build script - run: sudo ./build-backend.sh + run: ./build-backend.sh shell: bash working-directory: ./deploy + # - name: Cache Maven packages + # uses: actions/cache@v4 + # with: + # path: ~/.m2 + # key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + # restore-keys: | + # ${{ runner.os }}-maven- + - name: Archive build artifacts uses: actions/upload-artifact@v4 with: name: backend-build-artifacts path: deploy/cloudbeaver + if-no-files-found: error diff --git a/.github/workflows/frontend-build.yml b/.github/workflows/frontend-build.yml index bf964d522a..bfc15e0755 100644 --- a/.github/workflows/frontend-build.yml +++ b/.github/workflows/frontend-build.yml @@ -27,7 +27,7 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v4 with: node-version: "20" @@ -60,19 +60,19 @@ jobs: ${{ runner.os }}-dist- - name: yarn install - uses: borales/actions-yarn@v4 + uses: borales/actions-yarn@v5 with: dir: webapp cmd: install - name: yarn lerna bootstrap - uses: borales/actions-yarn@v4 + uses: borales/actions-yarn@v5 with: dir: webapp cmd: lerna bootstrap - name: build - uses: borales/actions-yarn@v4 + uses: borales/actions-yarn@v5 with: dir: webapp/packages/product-default cmd: bundle @@ -82,3 +82,4 @@ jobs: with: name: frontend-build-artifacts path: webapp/packages/product-default/lib + if-no-files-found: error diff --git a/.github/workflows/frontend-cache.yml b/.github/workflows/frontend-cache.yml index 2adf52545a..7236ea5a08 100644 --- a/.github/workflows/frontend-cache.yml +++ b/.github/workflows/frontend-cache.yml @@ -17,9 +17,9 @@ jobs: working-directory: ./webapp steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: "18" @@ -28,7 +28,7 @@ jobs: run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - name: restore yarn cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} @@ -36,7 +36,7 @@ jobs: ${{ runner.os }}-yarn- - name: restore node_modules - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: "**/node_modules" key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }} @@ -44,7 +44,7 @@ jobs: ${{ runner.os }}-node_modules- - name: restore typescript cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: "**/packages/*/dist" key: ${{ runner.os }}-dist-${{ hashFiles('**/yarn.lock') }} @@ -52,25 +52,25 @@ jobs: ${{ runner.os }}-dist- - name: yarn install - uses: borales/actions-yarn@v4 + uses: borales/actions-yarn@v5 with: dir: webapp cmd: install - name: yarn lerna bootstrap - uses: borales/actions-yarn@v4 + uses: borales/actions-yarn@v5 with: dir: webapp cmd: lerna bootstrap - name: build - uses: borales/actions-yarn@v4 + uses: borales/actions-yarn@v5 with: dir: webapp/packages/product-default cmd: build # build tyescript source code - name: test - uses: borales/actions-yarn@v4 + uses: borales/actions-yarn@v5 with: dir: webapp cmd: lerna run test # build packages that have test script diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 80f2da0cfb..68a196695a 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -21,9 +21,9 @@ jobs: working-directory: ./webapp steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: "20" @@ -32,7 +32,7 @@ jobs: run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - name: restore yarn cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} @@ -40,7 +40,7 @@ jobs: ${{ runner.os }}-yarn- - name: restore node_modules - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: "**/node_modules" key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }} @@ -48,7 +48,7 @@ jobs: ${{ runner.os }}-node_modules- - name: restore typescript cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: "**/packages/*/dist" key: ${{ runner.os }}-dist-${{ hashFiles('**/yarn.lock') }} @@ -56,25 +56,25 @@ jobs: ${{ runner.os }}-dist- - name: yarn install - uses: borales/actions-yarn@v4 + uses: borales/actions-yarn@v5 with: dir: webapp cmd: install - name: yarn lerna bootstrap - uses: borales/actions-yarn@v4 + uses: borales/actions-yarn@v5 with: dir: webapp cmd: lerna bootstrap - name: build - uses: borales/actions-yarn@v4 + uses: borales/actions-yarn@v5 with: dir: webapp/packages/product-default cmd: bundle - name: test - uses: borales/actions-yarn@v4 + uses: borales/actions-yarn@v5 with: dir: webapp cmd: lerna run test