diff --git a/.github/actions/action.yml b/.github/actions/action.yml index d6901978286..6e788f2c0f1 100644 --- a/.github/actions/action.yml +++ b/.github/actions/action.yml @@ -2,7 +2,7 @@ name: Automated Version Bump description: Automated version bump for npm packages. runs: - using: node12 + using: node16 main: index.js branding: icon: chevron-up diff --git a/.github/workflows/analysis-codacy.yml b/.github/workflows/analysis-codacy.yml index 0c7fb4fa89c..0b83be8a961 100644 --- a/.github/workflows/analysis-codacy.yml +++ b/.github/workflows/analysis-codacy.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@main - name: Run Codacy Analysis CLI uses: codacy/codacy-analysis-cli-action@master diff --git a/.github/workflows/analysis-codeql.yml b/.github/workflows/analysis-codeql.yml index 09ffda97d21..207853d9d8a 100644 --- a/.github/workflows/analysis-codeql.yml +++ b/.github/workflows/analysis-codeql.yml @@ -28,7 +28,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@main - name: Initialize CodeQL uses: github/codeql-action/init@v2 @@ -48,7 +48,7 @@ jobs: sudo update-alternatives --set gcc /usr/bin/gcc-11 - name: CCache - uses: hendrikmuhs/ccache-action@v1.2 + uses: hendrikmuhs/ccache-action@main with: max-size: "1G" key: ccache-${{ matrix.os }}-${{ matrix.buildtype }} @@ -57,17 +57,18 @@ jobs: - name: Restore artifacts, or setup vcpkg (do not install any package) if: ${{ matrix.language == 'cpp' }} - uses: lukka/run-vcpkg@v10 + uses: lukka/run-vcpkg@main with: - vcpkgGitCommitId: 8b62d95a81afcb9efe74bebeb62f04c1e0e2a003 + vcpkgGitURL: "https://github.com/opentibiabr/vcpkg.git" + vcpkgGitCommitId: 2400585c812a27a7d93461bf84f2907f42367904 - name: Get latest CMake and ninja if: ${{ matrix.language == 'cpp' }} - uses: lukka/get-cmake@latest + uses: lukka/get-cmake@main - name: Run CMake if: ${{ matrix.language == 'cpp' }} - uses: lukka/run-cmake@v10 + uses: lukka/run-cmake@main with: configurePreset: ${{ matrix.buildtype }} buildPreset: ${{ matrix.buildtype }} diff --git a/.github/workflows/analysis-reviewdog.yml b/.github/workflows/analysis-reviewdog.yml index cb7c5d0e8f8..61799ce6f64 100644 --- a/.github/workflows/analysis-reviewdog.yml +++ b/.github/workflows/analysis-reviewdog.yml @@ -11,10 +11,10 @@ jobs: steps: - name: Check out code. - uses: actions/checkout@master + uses: actions/checkout@main - name: Setup reviewdog - uses: reviewdog/action-setup@v1 + uses: reviewdog/action-setup@v1.0.3 - name: Setup cppcheck run: sudo apt-get update && sudo apt-get install -y cppcheck @@ -33,10 +33,10 @@ jobs: steps: - name: Check out code. - uses: actions/checkout@master + uses: actions/checkout@main - name: Setup reviewdog - uses: reviewdog/action-setup@v1 + uses: reviewdog/action-setup@v1.0.3 - name: Setup Lua/Luacheck run: sudo apt-get update && sudo apt-get install -y libluajit-5.1-dev lua-check @@ -55,10 +55,10 @@ jobs: steps: - name: Check out code. - uses: actions/checkout@master + uses: actions/checkout@main - name: Setup reviewdog - uses: reviewdog/action-setup@v1 + uses: reviewdog/action-setup@v1.0.3 - name: Setup Lua/Luacheck run: sudo apt-get update && sudo apt-get install -y libluajit-5.1-dev lua-check @@ -77,10 +77,10 @@ jobs: steps: - name: Check out code. - uses: actions/checkout@master + uses: actions/checkout@main - name: shellcheck - uses: reviewdog/action-shellcheck@v1 + uses: reviewdog/action-shellcheck@v1.15.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} reporter: github-pr-check @@ -93,10 +93,10 @@ jobs: steps: - name: Check out code. - uses: actions/checkout@master + uses: actions/checkout@main - name: Setup reviewdog - uses: reviewdog/action-setup@v1 + uses: reviewdog/action-setup@v1.0.3 - name: Setup xmllint run: sudo apt-get update && sudo apt-get install -y libxml2-utils @@ -115,10 +115,10 @@ jobs: steps: - name: Check out code. - uses: actions/checkout@master + uses: actions/checkout@main - name: Run yamllint - uses: reviewdog/action-yamllint@v1 + uses: reviewdog/action-yamllint@v1.6.1 with: github_token: ${{ secrets.GITHUB_TOKEN }} reporter: github-pr-check @@ -129,9 +129,9 @@ jobs: steps: - name: Check out code - uses: actions/checkout@master + uses: actions/checkout@main - name: hadolint - uses: reviewdog/action-hadolint@v1 + uses: reviewdog/action-hadolint@v1.33.0 with: reporter: github-pr-check diff --git a/.github/workflows/analysis-sonarcloud.yml b/.github/workflows/analysis-sonarcloud.yml index d1162d46056..901255fcc22 100644 --- a/.github/workflows/analysis-sonarcloud.yml +++ b/.github/workflows/analysis-sonarcloud.yml @@ -23,13 +23,13 @@ jobs: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@main if: ${{ github.event_name == 'pull_request' || github.event_name == 'pull_request_target' }} with: ref: ${{github.event.pull_request.head.ref}} repository: ${{github.event.pull_request.head.repo.full_name}} - - uses: actions/checkout@v3 + - uses: actions/checkout@main if: ${{ github.event_name == 'push' }} - name: Install Linux Dependencies @@ -44,7 +44,7 @@ jobs: - name: CCache id: ccache - uses: actions/cache@v3 + uses: actions/cache@main with: path: $HOME/.ccache key: ccache-${{ runner.os}}-${{ matrix.buildtype }}-${{ hashFiles('**/src') }} @@ -53,7 +53,7 @@ jobs: ccache-${{ runner.os}}- - name: Sonar cache - uses: actions/cache@v3 + uses: actions/cache@main with: path: $HOME/.cfamily key: sonar-${{ runner.os}}-${{ matrix.buildtype }}-${{ hashFiles('**/src') }} @@ -62,7 +62,7 @@ jobs: sonar-${{ runner.os}}- - name: Cache SonarCloud packages - uses: actions/cache@v3 + uses: actions/cache@main with: path: $HOME/.sonar/cache key: sonar-${{ runner.os}}-${{ matrix.buildtype }}-${{ hashFiles('**/src') }} @@ -71,13 +71,15 @@ jobs: sonar-${{ runner.os}}- - name: Restore artifacts, or setup vcpkg (do not install any package) - uses: lukka/run-vcpkg@v10 + uses: lukka/run-vcpkg@main with: - vcpkgGitCommitId: 8b62d95a81afcb9efe74bebeb62f04c1e0e2a003 + vcpkgGitURL: "https://github.com/opentibiabr/vcpkg.git" + vcpkgGitCommitId: 2400585c812a27a7d93461bf84f2907f42367904 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: + distribution: 'temurin' java-version: 11 - name: Download and set up sonar-scanner diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index 57b242b2875..6e7432022ad 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -13,26 +13,26 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@main with: fetch-depth: 0 - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v0.9.11 + uses: gittools/actions/gitversion/setup@v0.9.15 with: versionSpec: '5.x' - name: Determine Version id: gitversion - uses: gittools/actions/gitversion/execute@v0.9.11 + uses: gittools/actions/gitversion/execute@v0.9.15 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2.1.0 with: install: true - name: Cache Docker layers - uses: actions/cache@v3 + uses: actions/cache@main with: path: /tmp/.buildx-cache key: ${{ runner.os }}-buildx-${{ github.sha }} @@ -40,7 +40,7 @@ jobs: ${{ runner.os }}-buildx- - name: Login to GitHub Container Registry - uses: docker/login-action@v1 + uses: docker/login-action@v2.1.0 with: registry: ghcr.io username: ${{ github.repository_owner }} @@ -48,7 +48,7 @@ jobs: - name: Build if: ${{ github.event_name == 'pull_request' }} - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3.2.0 with: file: docker/server/Dockerfile tags: ghcr.io/${{ github.repository }}:${{ steps.gitversion.outputs.semVer }} @@ -58,7 +58,7 @@ jobs: - name: Build and push id: docker_build if: ${{ github.event_name == 'push' }} - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3.2.0 with: file: docker/server/Dockerfile push: true diff --git a/.github/workflows/build-ubuntu.yml b/.github/workflows/build-ubuntu.yml index 41036d37caf..82d99267623 100644 --- a/.github/workflows/build-ubuntu.yml +++ b/.github/workflows/build-ubuntu.yml @@ -30,7 +30,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@main - name: Install Linux Dependencies run: > @@ -43,7 +43,7 @@ jobs: sudo update-alternatives --set gcc /usr/bin/gcc-11 - name: CCache - uses: hendrikmuhs/ccache-action@v1.2 + uses: hendrikmuhs/ccache-action@main with: max-size: "1G" key: ccache-${{ matrix.os }}-${{ matrix.buildtype }} @@ -51,21 +51,22 @@ jobs: ccache-${{ matrix.os }} - name: Restore artifacts and install vcpkg - uses: lukka/run-vcpkg@v10 + uses: lukka/run-vcpkg@main with: - vcpkgGitCommitId: 8b62d95a81afcb9efe74bebeb62f04c1e0e2a003 + vcpkgGitURL: "https://github.com/opentibiabr/vcpkg.git" + vcpkgGitCommitId: 2400585c812a27a7d93461bf84f2907f42367904 - name: Get latest CMake and ninja - uses: lukka/get-cmake@latest + uses: lukka/get-cmake@main - name: Run CMake - uses: lukka/run-cmake@v10 + uses: lukka/run-cmake@main with: configurePreset: ${{ matrix.buildtype }} buildPreset: ${{ matrix.buildtype }} - name: Create and Upload Artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@main with: name: canary-${{ matrix.buildtype }}-${{ github.sha }} path: | diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index cbdc1f45d02..655222c2074 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -28,10 +28,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@main - name: CCache - uses: hendrikmuhs/ccache-action@v1.2 + uses: hendrikmuhs/ccache-action@main with: max-size: "1G" variant: "sccache" @@ -44,21 +44,22 @@ jobs: run: rm -r -fo C:/mysql* - name: Restore artifacts and install vcpkg - uses: lukka/run-vcpkg@v10 + uses: lukka/run-vcpkg@main with: - vcpkgGitCommitId: 8b62d95a81afcb9efe74bebeb62f04c1e0e2a003 + vcpkgGitURL: "https://github.com/opentibiabr/vcpkg.git" + vcpkgGitCommitId: 2400585c812a27a7d93461bf84f2907f42367904 - name: Get latest CMake and ninja - uses: lukka/get-cmake@latest + uses: lukka/get-cmake@main - name: Run CMake - uses: lukka/run-cmake@v10 + uses: lukka/run-cmake@main with: configurePreset: ${{ matrix.buildtype }} buildPreset: ${{ matrix.buildtype }} - name: Create and Upload Artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@main with: name: canary-${{ matrix.buildtype }}-${{ github.sha }} path: | diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index 1a510c71c3e..dfc191a4e1f 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -13,7 +13,7 @@ jobs: steps: - name: 'Checkout source code' - uses: 'actions/checkout@v2' + uses: 'actions/checkout@main' with: ref: ${{ github.ref }} - name: 'cat package.json' diff --git a/.github/workflows/cron-stale.yml b/.github/workflows/cron-stale.yml index a868ed4781d..57df64dae6a 100644 --- a/.github/workflows/cron-stale.yml +++ b/.github/workflows/cron-stale.yml @@ -8,7 +8,7 @@ jobs: stale: runs-on: ubuntu-latest steps: - - uses: actions/stale@v3 + - uses: actions/stale@v6 with: repo-token: ${{ secrets.GITHUB_TOKEN }} stale-issue-message: 'This issue is stale because it has been open 120 days with no activity.' diff --git a/.github/workflows/tests-lua.yml b/.github/workflows/tests-lua.yml index df133aa522c..ebc52323ad2 100644 --- a/.github/workflows/tests-lua.yml +++ b/.github/workflows/tests-lua.yml @@ -6,9 +6,6 @@ on: push: branches: - main - - dev - - devel - - develop jobs: job: @@ -23,4 +20,4 @@ jobs: run: sudo apt-get install -y libluajit-5.1-dev - name: Check out code. - uses: actions/checkout@v1 + uses: actions/checkout@main