Skip to content

Update Jenkinsfile - test check #994

Update Jenkinsfile - test check

Update Jenkinsfile - test check #994

Workflow file for this run

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
name: Build and run TCK Servlet
on: [push, pull_request]
permissions:
security-events: read
contents: write
actions: read
id-token: write
checks: write
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
java: [17]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Arquillian
uses: actions/checkout@v4
with:
repository: 'arquillian/arquillian-container-jetty'
ref: 'master'
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
cache: 'maven'
- name: Set up Maven
run:
mvn --errors --batch-mode --show-version org.apache.maven.plugins:maven-wrapper-plugin:3.2.0:wrapper -Dmaven=3.9.9
- name: Build Arquillian with Maven
run: ./mvnw install -B -U
# - name: Checkout Servlet TCK
# uses: actions/checkout@v4
# with:
# repository: 'jakartaee/servlet'
# ref: '6.1.x'
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
cache: 'maven'
# - name: Set up Maven
# run:
# mvn --errors --batch-mode --show-version org.apache.maven.plugins:maven-wrapper-plugin:3.2.0:wrapper -Dmaven=3.9.9
# - name: Build Servlet TCK with Maven
# run: ./mvnw -V -B -U clean install -DskipTests -e -B -U
- name: Checkout TCK Run
uses: actions/checkout@v4
- name: Set up Maven
run:
mvn --errors --batch-mode --show-version org.apache.maven.plugins:maven-wrapper-plugin:3.2.0:wrapper -Dmaven=3.9.9
- name: Install TCK jars
run: |
wget -O jakarta-servlet-tck.zip https://download.eclipse.org/jakartaee/servlet/6.1/jakarta-servlet-tck-6.1.0.zip &&
unzip -j jakarta-servlet-tck.zip servlet-tck/artifacts/servlet-tck-runtime-6.1.0.jar servlet-tck/artifacts/servlet-tck-util-6.1.0.jar servlet-tck/artifacts/servlet-tck-6.1.0.pom &&
./mvnw -ntp install:install-file -Dfile=./servlet-tck-runtime-6.1.0.jar -DgroupId=jakarta.tck -DartifactId=servlet-tck-runtime -Dversion=6.1.0 -Dpackaging=jar &&
./mvnw -ntp install:install-file -Dfile=./servlet-tck-util-6.1.0.jar -DgroupId=jakarta.tck -DartifactId=servlet-tck-util -Dversion=6.1.0 -Dpackaging=jar &&
./mvnw -ntp install:install-file -Dfile=./servlet-tck-6.1.0.pom -DgroupId=jakarta.tck -DartifactId=servlet-tck -Dversion=6.1.0 -Dpackaging=pom
- name: Build TCK Run with Maven
run: ./mvnw -V -B -U -am clean verify -e -B -Dmaven.test.failure.ignore=true
- name: Publish Test Report
uses: dorny/test-reporter@v1
with:
name: Tests Report
path: '**/target/surefire-reports/TEST-**.xml'
reporter: java-junit
fail-on-error: false