• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2022 Google LLC
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14# Github action job to test core java library features on
15# downstream client libraries before they are released.
16on:
17  push:
18    branches:
19    - main
20  pull_request:
21name: versions check
22jobs:
23  unmanaged-versions-check:
24    runs-on: ubuntu-latest
25    steps:
26    - uses: actions/checkout@v3
27    - run: ./generation/check_non_release_please_versions.sh
28
29  # For Release Please pull requests, the artifacts being published must not
30  # have the duplicate versions in Maven Central
31  existing-versions-check:
32    runs-on: ubuntu-latest
33    if: |
34      github.repository_owner == 'googleapis' && github.head_ref == 'release-please--branches--main' &&
35      (github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'autorelease: snapshot'))
36    steps:
37    - run: sudo apt-get update -y
38    - run: sudo apt-get install libxml2-utils
39    - uses: actions/checkout@v3
40    - run: ./generation/check_existing_release_versions.sh
41