diff --git a/.github/workflows/main-5.4.yml b/.github/workflows/main-5.4.yml index 56f4465f..00a6a671 100644 --- a/.github/workflows/main-5.4.yml +++ b/.github/workflows/main-5.4.yml @@ -13,9 +13,9 @@ jobs: luceeVersionQuery: 5.4/all/light steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up JDK 11 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: '11' distribution: 'adopt' @@ -26,12 +26,12 @@ jobs: mysql -e 'CREATE USER "lucee"@"localhost" IDENTIFIED WITH mysql_native_password BY "lucee";' -uroot -proot mysql -e 'GRANT ALL PRIVILEGES ON lucee.* TO "lucee"@"localhost"' -uroot -proot - name: Cache Maven packages - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.m2 key: lucee-script-runner-maven-cache - name: Cache Lucee files - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: _actions/lucee/script-runner/main/lucee-download-cache key: lucee-downloads-${{ env.luceeVersion }} @@ -40,12 +40,12 @@ jobs: - name: Build with Ant run: ant -noinput -verbose -buildfile build.xml - name: Upload Artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: hibernate-lex path: dist/*.lex - name: Checkout Lucee - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: lucee/lucee path: lucee @@ -55,6 +55,7 @@ jobs: webroot: ${{ github.workspace }}/lucee/test execute: /bootstrap-tests.cfm luceeVersion: ${{ env.luceeVersion }} + luceeVersionQuery: ${{ env.luceeVersionQuery }} extensionDir: ${{ github.workspace }}/dist extensions: env: diff --git a/.github/workflows/main-6.0.yml b/.github/workflows/main-6.0.yml new file mode 100644 index 00000000..af5c81f5 --- /dev/null +++ b/.github/workflows/main-6.0.yml @@ -0,0 +1,75 @@ +# This workflow will build a Java project with Ant +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-ant + +name: Java CI - Lucee 6.0 + +on: [push, pull_request,workflow_dispatch] + +jobs: + build: + + runs-on: ubuntu-latest + env: + luceeVersionQuery: 6.0/all/light + + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 11 + uses: actions/setup-java@v4 + with: + java-version: '11' + distribution: 'adopt' + - name: Set up MySQL (local) + run: | + sudo systemctl start mysql + mysql -e 'CREATE DATABASE lucee' -uroot -proot + mysql -e 'CREATE USER "lucee"@"localhost" IDENTIFIED WITH mysql_native_password BY "lucee";' -uroot -proot + mysql -e 'GRANT ALL PRIVILEGES ON lucee.* TO "lucee"@"localhost"' -uroot -proot + - name: Cache Maven packages + uses: actions/cache@v4 + with: + path: ~/.m2 + key: lucee-script-runner-maven-cache + - name: Cache Lucee files + uses: actions/cache@v4 + with: + path: _actions/lucee/script-runner/main/lucee-download-cache + key: lucee-downloads-${{ env.luceeVersion }} + restore-keys: | + lucee-downloads + - name: Build with Ant + run: ant -noinput -verbose -buildfile build.xml + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: hibernate-lex + path: dist/*.lex + - name: Checkout Lucee + uses: actions/checkout@v4 + with: + repository: lucee/lucee + path: lucee + - name: Run Lucee Test Suite (testFilter="orm") + uses: lucee/script-runner@main + with: + webroot: ${{ github.workspace }}/lucee/test + execute: /bootstrap-tests.cfm + luceeVersion: ${{ env.luceeVersion }} + luceeVersionQuery: ${{ env.luceeVersionQuery }} + extensionDir: ${{ github.workspace }}/dist + extensions: + env: + testLabels: orm + testAdditional: ${{ github.workspace }}/tests + MYSQL_SERVER: localhost + MYSQL_USERNAME: lucee + MYSQL_PASSWORD: lucee + MYSQL_PORT: 3306 + MYSQL_DATABASE: lucee + - name: Publish Test Results + uses: EnricoMi/publish-unit-test-result-action@v1 + if: always() + with: + files: ${{ github.workspace }}/lucee/test/reports/junit-test-results.xml + check_name: "Test Results" + diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0ada0ba7..2a9f6e31 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,7 +1,7 @@ # This workflow will build a Java project with Ant # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-ant -name: Java CI +name: Java CI - Lucee latest on: [push, pull_request,workflow_dispatch] @@ -12,19 +12,19 @@ jobs: env: luceeVersionQuery: 0/all/light steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up JDK 11 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: '11' distribution: 'adopt' - name: Cache Maven packages - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.m2 key: lucee-script-runner-maven-cache - name: Cache Lucee files - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: _actions/zspitzer/lucee-script-engine-runner/main/lucee-download-cache key: lucee-downloads-${{ env.luceeVersion }} @@ -33,12 +33,12 @@ jobs: - name: Build with Ant run: ant -noinput -verbose -buildfile build.xml - name: Upload Artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: hibernate-lex path: dist/*.lex - name: Checkout Lucee - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: lucee/lucee path: lucee @@ -48,6 +48,7 @@ jobs: webroot: ${{ github.workspace }}/lucee/test execute: /bootstrap-tests.cfm luceeVersion: ${{ env.luceeVersion }} + luceeVersionQuery: ${{ env.luceeVersionQuery }} extensionDir: ${{ github.workspace }}/dist env: testLabels: orm