This is an automated email from the ASF dual-hosted git repository. qiaojialin pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/iotdb-web-workbench.git
commit 9c84d53f1163e878e3bf575210ccd394a5d8bcbe Author: Julian Feinauer <[email protected]> AuthorDate: Sat Sep 11 14:50:05 2021 +0200 [FRONTEND] Add workflow for frontend --- .github/workflows/frontend.yml | 54 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml new file mode 100644 index 0000000..0022604 --- /dev/null +++ b/.github/workflows/frontend.yml @@ -0,0 +1,54 @@ +# This workflow will build a Java project with Maven +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven + +name: Main Mac and Linux + +on: + push: + branches: + - master + - 'rel/*' + - Vector + paths-ignore: + - 'docs/**' + pull_request: + branches: + - master + - 'rel/*' + - cluster_new + - Vector + paths-ignore: + - 'docs/**' + # allow manually run the action: + workflow_dispatch: + +env: + MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 + +# TODO make npm specific workflow + +jobs: + unix: + strategy: + fail-fast: false + max-parallel: 20 + matrix: + java: [ 8, 11, 13 ] + os: [ ubuntu-latest, macos-latest ] + runs-on: ${{ matrix.os}} + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK ${{ matrix.java }} + uses: actions/setup-java@v1 + with: + java-version: ${{ matrix.java }} + - name: Cache Maven packages + uses: actions/cache@v2 + with: + path: ~/.m2 + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2- + - name: Unit Tests + shell: bash + run: cd frontend && npm install && npm run lint && npm run test:unit
