You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2021/02/09 21:11:13 UTC
[myfaces-tobago] 01/02: chore(ci): initial add for tobago ci and
dependabot config
This is an automated email from the ASF dual-hosted git repository.
bommel pushed a commit to branch tobago-4.x
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
commit 3abcb9ec36634f209ee4fc2671c1d5ae0ab86fb7
Author: Bernd Bohmann <bo...@apache.org>
AuthorDate: Tue Feb 9 21:55:27 2021 +0100
chore(ci): initial add for tobago ci and dependabot config
---
.gitattributes | 49 ++++++++++++++++++++++++++
.github/dependabot.yml | 77 +++++++++++++++++++++++++++++++++++++++++
.github/workflows/tobago-ci.yml | 61 ++++++++++++++++++++++++++++++++
3 files changed, 187 insertions(+)
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..5691492
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,49 @@
+# Handle line endings automatically for files detected as text
+# and leave all files detected as binary untouched.
+* text=auto
+
+#
+# The above will handle all files NOT found below
+#
+# These files are text and should be normalized (Convert crlf => lf)
+.gitignore text
+.gitattributes text
+*.md text
+
+#
+# Exclude files from exporting
+#
+
+.gitattributes export-ignore
+.gitignore export-ignore
+.github export-ignore
+.travis.yml export-ignore
+Jenkinsfile export-ignore
+
+# Java sources
+*.java text diff=java
+
+# These files are text and should be normalized (Convert crlf => lf)
+*.css text diff=css
+*.scss text diff=css
+*.df text
+*.htm text diff=html
+*.html text diff=html
+*.js text
+*.jsp text
+*.jspf text
+*.jspx text
+*.properties text
+*.tld text
+*.tag text
+*.tagx text
+*.ts text
+*.sh text eol=lf
+*.xml text
+*.dtd text
+*.xsd text
+*.xsl text
+
+# These files are binary and should be left untouched
+# (binary is a macro for -text -diff)
+*.jks binary
\ No newline at end of file
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000..45147d8
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,77 @@
+# 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.
+
+# Please see the documentation for all configuration options:
+# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
+
+version: 2
+updates:
+ - package-ecosystem: "maven"
+ directory: "/"
+ schedule:
+ interval: "daily"
+ ignore:
+ # Jetty >= 11 requires JakartaEE
+ - dependency-name: "org.eclipse.jetty:jetty-maven-plugin"
+ versions:
+ - ">= 11.0.0"
+ - dependency-name: "org.apache.myfaces.core:myfaces-api"
+ versions:
+ - ">= 3.0.0"
+ - dependency-name: "org.apache.myfaces.core:myfaces-impl"
+ versions:
+ - ">= 3.0.0"
+ - dependency-name: "org.glassfish:jakarta.faces"
+ versions:
+ - ">= 3.0.0"
+ - dependency-name: "jakarta.inject:jakarta.inject-api"
+ versions:
+ - ">= 2.0.0"
+ - dependency-name: "jakarta.servlet.jsp.jstl:jakarta.servlet.jsp.jstl-api"
+ versions:
+ - ">= 2.0.0"
+ - dependency-name: "jakarta.validation:jakarta.validation-api"
+ versions:
+ - ">= 3.0.0"
+ - dependency-name: "jakarta.el:jakarta.el-api"
+ versions:
+ - ">= 4.0.0"
+ - dependency-name: "jakarta.annotation:jakarta.annotation-api"
+ versions:
+ - ">= 2.0.0"
+ - dependency-name: "org.glassfish:jakarta.json"
+ versions:
+ - ">= 2.0.0"
+ - dependency-name: "org.jboss.weld.servlet:weld-servlet-shaded"
+ versions:
+ - ">= 4.0.0"
+ - dependency-name: "org.hibernate.validator:hibernate-validator"
+ versions:
+ - ">= 7.0.0"
+ - dependency-name: "org.antlr:stringtemplate"
+ versions:
+ - ">= 4.0.0"
+ - dependency-name: "org.apache.maven.plugins:maven-checkstyle-plugin"
+ versions:
+ - ">=3.1.0"
+ - dependency-name: "org.apache.maven.plugins:maven-enforcer-plugin"
+ versions:
+ - ">= 3.0.0"
+ - package-ecosystem: "github-actions"
+ directory: "/"
+ schedule:
+ # Check for updates to GitHub Actions every day
+ interval: "daily"
+
diff --git a/.github/workflows/tobago-ci.yml b/.github/workflows/tobago-ci.yml
new file mode 100644
index 0000000..37df9e0
--- /dev/null
+++ b/.github/workflows/tobago-ci.yml
@@ -0,0 +1,61 @@
+#
+# 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
+#
+# 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: Tobago CI
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+ workflow_dispatch:
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ persist-credentials: false
+ - name: Set up JDK 1.8
+ uses: actions/setup-java@v1
+ with:
+ java-version: 1.8
+ - name: Cache Maven packages
+ uses: actions/cache@v2.1.4
+ with:
+ path: ~/.m2
+ key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+ restore-keys: ${{ runner.os }}-m2
+ - name: Build with Maven
+ run: |
+ if ! mvn -B clean package checkstyle:check apache-rat:check animal-sniffer:check dependency-check:check -Pgenerate-assembly -Dformats=XML -f pom.xml; then
+ find . \( -path '*/target/surefire-reports/*.xml' -o -path '*/target/failsafe-reports/*.xml' -o -path '*/target/rat.txt' -o -path '*/target/checkstyle-result.xml' -o -path '*/target/dependency-check-report.xml' \) | zip -q reports.zip -@
+ exit 1
+ fi
+
+ - name: Reports
+ uses: actions/upload-artifact@v2
+ if: failure()
+ with:
+ name: reports
+ retention-days: 14
+ path: reports.zip
+ if-no-files-found: ignore