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 28a05bbd0a08acde2a5cb0836544304085998247 Author: Niklas Merz <[email protected]> AuthorDate: Sat Sep 11 17:06:45 2021 +0200 Create frontend jobs (#1) * Frontend action * Allow continue on error for lint steps * Multiple jobs * Use same settings as default workflow --- .github/workflows/frontend.yml | 61 +++++++++++++++++++++--------------------- 1 file changed, 30 insertions(+), 31 deletions(-) diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 2c19095..58a3b31 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -1,7 +1,4 @@ -# 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: Frontend +name: frontend on: push: @@ -22,33 +19,35 @@ on: # 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}} - + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@master + - name: npm install + run: cd frontend && npm install + - name: lint + run: cd frontend && npm run lint + - name: lint-css + run: cd frontend && npm run lint-css + + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@master + - name: npm install + run: cd frontend && npm install + - name: test + run: cd frontend && npm run test:unit + + build: + runs-on: ubuntu-latest 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 + - uses: actions/setup-node@master + - name: npm install + run: cd frontend && npm install + - name: Build + run: cd frontend && npm run build \ No newline at end of file
