[Feature]Trino dialect supports insert into syntax (#52712) #104
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
name: MERGE SONARCLOUD FE | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'fe/**.java' | |
- 'fe/**.xml' | |
jobs: | |
sonarcloud-fe: | |
runs-on: ubuntu-latest | |
if: github.repository == 'StarRocks/starrocks' | |
steps: | |
- name: clean | |
run: | | |
rm -rf ${{ github.workspace }} | |
mkdir -p ${{ github.workspace }} | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: BRANCH INFO | |
id: branch | |
run: | | |
echo ${{github.base_ref}} | |
echo "branch=${{github.base_ref}}" >> $GITHUB_OUTPUT | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: 'adopt' | |
- name: Cache SonarCloud packages | |
uses: actions/cache@v4 | |
with: | |
path: ~/.sonar/cache | |
key: ${{ runner.os }}-sonar | |
restore-keys: ${{ runner.os }}-sonar | |
- name: Cache Maven packages | |
uses: actions/cache@v4 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-maven | |
- name: Install Apache Thrift 0.13 | |
run: | | |
mkdir -p ./.setup-thrift/oras | |
mkdir -p ./.setup-thrift/thrift | |
curl -sLO https://github.com/deislabs/oras/releases/download/v0.7.0/oras_0.7.0_linux_amd64.tar.gz | |
tar -xvzf oras_0.7.0_linux_amd64.tar.gz | |
ln -sf $(pwd)/oras /usr/local/bin/oras | |
oras pull ghcr.io/dodopizza/setup-thrift/binaries:v0.13.0 --media-type application/vnd.unknown.layer.v1+tar.gz | |
tar zxf ./thrift.v0.13.0.tar.gz -C . | |
ln -sf $(pwd)/thrift /usr/local/bin/thrift | |
- name: Analyze FE | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: f0fb4d25c03bae90c2e994c45c29c49dc86fc169 | |
run: | | |
thrift --version | |
whereis thrift | |
export STARROCKS_HOME=${{ github.workspace }} | |
source env.sh | |
mkdir -p thirdparty/installed/bin/ | |
cd thirdparty/installed/bin/ && ln -s /usr/local/bin/thrift thrift | |
cd ${{ github.workspace }}/fe | |
mvn -B -DskipTests verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=StarRocks_starrocks -Dsonar.pullrequest.key=${{ github.event.number }} -Dsonar.pullrequest.base=${{ github.base_ref }} -Dsonar.pullrequest.branch=${{ github.head_ref }} |