You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ro...@apache.org on 2020/08/06 15:44:13 UTC
[qpid-dispatch] branch master updated: DISPATCH-1720,
DISPATCH-1739: move console tests + lint check jobs into the main
'build' workflow, add a RAT check job
This is an automated email from the ASF dual-hosted git repository.
robbie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git
The following commit(s) were added to refs/heads/master by this push:
new 34e4091 DISPATCH-1720, DISPATCH-1739: move console tests + lint check jobs into the main 'build' workflow, add a RAT check job
34e4091 is described below
commit 34e40915c92b995dbf15122b98345eaf02c0e4ce
Author: Robbie Gemmell <ro...@apache.org>
AuthorDate: Thu Aug 6 16:43:32 2020 +0100
DISPATCH-1720, DISPATCH-1739: move console tests + lint check jobs into the main 'build' workflow, add a RAT check job
This closes #813
---
.github/workflows/build.yaml | 51 ++++++++++++++++++++++++++++++++++++++++++
.github/workflows/console.yaml | 50 -----------------------------------------
2 files changed, 51 insertions(+), 50 deletions(-)
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index ebfba60..5e21197 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -197,3 +197,54 @@ jobs:
name: cores_${{matrix.os}}_${{matrix.buildType}}_${{matrix.runtimeCheck}}_${{matrix.shard}}
path: |
**/core
+
+ console-test:
+ name: Console Tests
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Install Dependencies
+ run: cd console/react && npm ci
+
+ - name: Run Tests
+ run: cd console/react && npm run test
+
+ console-eslint:
+ name: Console ESLint
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Install Dependencies
+ run: cd console/react && npm ci
+
+ - name: Install Typescript
+ run: cd console/react && npm install typescript
+
+ - name: Run ESLint
+ run: cd console/react && npx eslint --max-warnings 0 .
+
+ rat_check:
+ name: RAT Check
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/cache@v2
+ with:
+ path: ~/.m2/repository
+ key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ runner.os }}-maven-
+
+ - name: Install JDK ${{ matrix.java }}
+ uses: actions/setup-java@v1
+ with:
+ java-version: 11
+
+ - name: RAT Check
+ run: mvn apache-rat:check
+
+ - name: Output
+ if: ${{ ! cancelled() }}
+ run: cat target/rat.txt || echo "Unable to print output"
diff --git a/.github/workflows/console.yaml b/.github/workflows/console.yaml
deleted file mode 100644
index 63ff30b..0000000
--- a/.github/workflows/console.yaml
+++ /dev/null
@@ -1,50 +0,0 @@
-#
-# 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: "Console"
-
-on: [push, pull_request]
-
-jobs:
- test:
- name: Tests
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
-
- - name: Install Dependencies
- run: cd console/react && npm ci
-
- - name: Run Tests
- run: cd console/react && npm run test
-
- eslint:
- name: ESLint
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
-
- - name: Install Dependencies
- run: cd console/react && npm ci
-
- - name: Install Typescript
- run: cd console/react && npm install typescript
-
- - name: Run ESLint
- run: cd console/react && npx eslint --max-warnings 0 .
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org