Skip to content

版本升级至2.2

版本升级至2.2 #87

Workflow file for this run

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Run Servlet TCK
on:
push:
branches: [ "master" ]
paths-ignore:
- 'pages/**'
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
name: 下载servlet TCK
with:
repository: jakartaee/servlet
ref: c533204b8fb04a4b04169e697b3f140b8ea2deb9
path: jakartaee/servlet
# - uses: actions/checkout@v4
# name: 下载 smart-http
# with:
# repository: smartboot/smart-http
# path: smart-http
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
# - name: Build smart-http
# run: mvn -B install --file smart-http/pom.xml -Dmaven.compiler.source=8 -Dmaven.compiler.target=8
- name: Build servlet TCK with Maven
run: mvn -B install --file jakartaee/servlet/tck/pom.xml -Dmaven.compiler.source=8 -Dmaven.compiler.target=8
- name: Build smart-servlet with Maven
run: mvn -B install --file pom.xml
# - name: Build with Maven
# run: mvn -B verify --file tck/pom.xml -Dbasedir=tck_tmp -Dmaven.test.failure.ignore=true
- name: 执行 TCK 测试
run: mvn -B surefire-report:report --file tck/pom.xml
- name: 查看目录
run: ls -lh tck/target/
- name: 上传TCK报告
uses: actions/upload-artifact@v4
if: always() # 确保即使有失败的测试也会上传报告
with:
name: test-report
path: tck/target/site