From 3d722008bffc98591c42ab68003987884579f174 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Tue, 7 Jan 2025 00:38:01 +0100 Subject: [PATCH] add ci job to publish 1.0 snapshots and add license headers --- .github/workflows/checks.yml | 8 +++ .github/workflows/dependency-graph.yml | 17 ++++++ .github/workflows/format.yml | 17 ++++++ .github/workflows/headers.yml | 17 ++++++ .../workflows/integration-tests-cassandra.yml | 8 +++ .github/workflows/integration-tests-jdbc.yml | 8 +++ .github/workflows/integration-tests-kafka.yml | 8 +++ .github/workflows/integration-tests-slick.yml | 8 +++ .github/workflows/link-validator.yml | 8 +++ .github/workflows/nightly-pekko-1.0-tests.yml | 8 +++ .github/workflows/publish-1.0-docs.yml | 8 +++ .github/workflows/publish-1.0-nightly.yml | 55 +++++++++++++++++++ .github/workflows/publish-1.1-docs.yml | 8 +++ .github/workflows/publish-nightly.yml | 17 ++++++ .github/workflows/scala-steward.yml | 17 ++++++ .github/workflows/unit-tests.yml | 8 +++ 16 files changed, 220 insertions(+) create mode 100644 .github/workflows/publish-1.0-nightly.yml diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index f4539c5f..b1c79ebd 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -1,3 +1,11 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# license agreements; and to You under the Apache License, version 2.0: +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# This file is part of the Apache Pekko project, which was derived from Akka. +# + name: Basic checks on: diff --git a/.github/workflows/dependency-graph.yml b/.github/workflows/dependency-graph.yml index a22d958b..9a40bca1 100644 --- a/.github/workflows/dependency-graph.yml +++ b/.github/workflows/dependency-graph.yml @@ -1,3 +1,20 @@ +# 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: Update Dependency Graph on: push: diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 644720af..578358d1 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -1,3 +1,20 @@ +# 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: Scalafmt permissions: {} diff --git a/.github/workflows/headers.yml b/.github/workflows/headers.yml index 506c6923..ea92e2cd 100644 --- a/.github/workflows/headers.yml +++ b/.github/workflows/headers.yml @@ -1,3 +1,20 @@ +# 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: Headers on: diff --git a/.github/workflows/integration-tests-cassandra.yml b/.github/workflows/integration-tests-cassandra.yml index ddc278c0..23cc66be 100644 --- a/.github/workflows/integration-tests-cassandra.yml +++ b/.github/workflows/integration-tests-cassandra.yml @@ -1,3 +1,11 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# license agreements; and to You under the Apache License, version 2.0: +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# This file is part of the Apache Pekko project, which was derived from Akka. +# + name: Integration Tests for Cassandra on: diff --git a/.github/workflows/integration-tests-jdbc.yml b/.github/workflows/integration-tests-jdbc.yml index 2ba75595..ee4d26d2 100644 --- a/.github/workflows/integration-tests-jdbc.yml +++ b/.github/workflows/integration-tests-jdbc.yml @@ -1,3 +1,11 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# license agreements; and to You under the Apache License, version 2.0: +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# This file is part of the Apache Pekko project, which was derived from Akka. +# + name: Integration Tests for JDBC on: diff --git a/.github/workflows/integration-tests-kafka.yml b/.github/workflows/integration-tests-kafka.yml index 27f5f595..1b7afbcf 100644 --- a/.github/workflows/integration-tests-kafka.yml +++ b/.github/workflows/integration-tests-kafka.yml @@ -1,3 +1,11 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# license agreements; and to You under the Apache License, version 2.0: +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# This file is part of the Apache Pekko project, which was derived from Akka. +# + name: Integration Tests for Kafka on: diff --git a/.github/workflows/integration-tests-slick.yml b/.github/workflows/integration-tests-slick.yml index bff7e5c8..8bfe6379 100644 --- a/.github/workflows/integration-tests-slick.yml +++ b/.github/workflows/integration-tests-slick.yml @@ -1,3 +1,11 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# license agreements; and to You under the Apache License, version 2.0: +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# This file is part of the Apache Pekko project, which was derived from Akka. +# + name: Integration Tests for Slick on: diff --git a/.github/workflows/link-validator.yml b/.github/workflows/link-validator.yml index 632553d2..e1112245 100644 --- a/.github/workflows/link-validator.yml +++ b/.github/workflows/link-validator.yml @@ -1,3 +1,11 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# license agreements; and to You under the Apache License, version 2.0: +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# This file is part of the Apache Pekko project, which was derived from Akka. +# + name: Link Validator permissions: {} diff --git a/.github/workflows/nightly-pekko-1.0-tests.yml b/.github/workflows/nightly-pekko-1.0-tests.yml index 2c3334e0..3ff8550c 100644 --- a/.github/workflows/nightly-pekko-1.0-tests.yml +++ b/.github/workflows/nightly-pekko-1.0-tests.yml @@ -1,3 +1,11 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# license agreements; and to You under the Apache License, version 2.0: +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# This file is part of the Apache Pekko project, which was derived from Akka. +# + name: Nightly Integration Tests for JDBC (Pekko 1.0.x) on: diff --git a/.github/workflows/publish-1.0-docs.yml b/.github/workflows/publish-1.0-docs.yml index 6728b887..76fd1345 100644 --- a/.github/workflows/publish-1.0-docs.yml +++ b/.github/workflows/publish-1.0-docs.yml @@ -1,3 +1,11 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# license agreements; and to You under the Apache License, version 2.0: +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# This file is part of the Apache Pekko project, which was derived from Akka. +# + name: Publish 1.0 docs on: diff --git a/.github/workflows/publish-1.0-nightly.yml b/.github/workflows/publish-1.0-nightly.yml new file mode 100644 index 00000000..2cb9878e --- /dev/null +++ b/.github/workflows/publish-1.0-nightly.yml @@ -0,0 +1,55 @@ +# 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: Publish 1.0.x Nightly + +on: + workflow_dispatch: + schedule: + - cron: "22 0 * * *" + +jobs: + publish: + # runs on main repo only + if: github.repository == 'apache/pekko-projection' + name: Publish + runs-on: ubuntu-22.04 + env: + JAVA_OPTS: -Xms2G -Xmx2G -Xss2M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8 + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + # we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves + fetch-depth: 0 + fetch-tags: true + ref: 1.0.x + + - name: Setup Java 8 + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 8 + + - name: Install sbt + uses: sbt/setup-sbt@v1 + + - name: Publish to Apache Maven repo + env: + NEXUS_USER: ${{ secrets.NEXUS_USER }} + NEXUS_PW: ${{ secrets.NEXUS_PW }} + run: sbt +publish diff --git a/.github/workflows/publish-1.1-docs.yml b/.github/workflows/publish-1.1-docs.yml index f25bda32..3817904c 100644 --- a/.github/workflows/publish-1.1-docs.yml +++ b/.github/workflows/publish-1.1-docs.yml @@ -1,3 +1,11 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# license agreements; and to You under the Apache License, version 2.0: +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# This file is part of the Apache Pekko project, which was derived from Akka. +# + name: Publish 1.1 docs on: diff --git a/.github/workflows/publish-nightly.yml b/.github/workflows/publish-nightly.yml index a431a652..6c36b029 100644 --- a/.github/workflows/publish-nightly.yml +++ b/.github/workflows/publish-nightly.yml @@ -1,3 +1,20 @@ +# 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: Publish Nightly on: diff --git a/.github/workflows/scala-steward.yml b/.github/workflows/scala-steward.yml index f1206f6d..1c5771e0 100644 --- a/.github/workflows/scala-steward.yml +++ b/.github/workflows/scala-steward.yml @@ -1,3 +1,20 @@ +# 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. + on: workflow_dispatch: schedule: diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 96ab502d..2a13ad3f 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -1,3 +1,11 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# license agreements; and to You under the Apache License, version 2.0: +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# This file is part of the Apache Pekko project, which was derived from Akka. +# + name: Unit Tests on: