This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
lvjing2 pushed code #484
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: SOFAServerless Runtime Unit Test | |
run-name: ${{ github.actor }} pushed code | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'sofa-serverless-runtime/**' | |
pull_request: | |
branches: | |
- master | |
paths: | |
- 'sofa-serverless-runtime/**' | |
# enable manually running the workflow | |
workflow_dispatch: | |
env: | |
WORK_DIR: sofa-serverless-runtime | |
defaults: | |
run: | |
working-directory: sofa-serverless-runtime | |
jobs: | |
unit-test-for-jdk8: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Java JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: adopt | |
java-version: 8 | |
cache: maven | |
- name: Test | |
run: mvn clean install -DskipTests -Dmaven.javadoc.skip=true -B -U | |
&& sh ./check_format.sh | |
&& mvn test | |
- name: upload coverage reports to Codecov with github action | |
uses: codecov/codecov-action@v3 |