Skip to content

Make the AnnotatedApiUsageChecker constructor accept multiple annotation types. #24

Make the AnnotatedApiUsageChecker constructor accept multiple annotation types.

Make the AnnotatedApiUsageChecker constructor accept multiple annotation types. #24

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
name: "JDK ${{ matrix.java }}"
strategy:
matrix:
java: [ 8, 11 ]
runs-on: ubuntu-latest
steps:
# Cancel any previous runs for the same branch that are still running.
- name: 'Cancel previous runs'
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5
with:
access_token: ${{ github.token }}
- name: 'Check out repository'
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
- name: 'Cache local Maven repository'
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
with:
path: ~/.m2/repository
key: maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
maven-
- name: 'Set up JDK ${{ matrix.java }}'
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2
with:
java-version: ${{ matrix.java }}
distribution: 'zulu'
- name: 'Install'
shell: bash
run: mvn -B install -U -DskipTests=true
- name: 'Test'
shell: bash
run: mvn -B verify -U -Dmaven.javadoc.skip=true
publish_snapshot:
name: 'Publish snapshot'
needs: test
if: github.event_name == 'push' && github.repository == 'google/guava-beta-checker'
runs-on: ubuntu-latest
steps:
- name: 'Check out repository'
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
- name: 'Cache local Maven repository'
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
with:
path: ~/.m2/repository
key: maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
maven-
- name: 'Set up JDK 11'
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2
with:
java-version: 11
distribution: 'zulu'
server-id: sonatype-nexus-snapshots
server-username: CI_DEPLOY_USERNAME
server-password: CI_DEPLOY_PASSWORD
- name: 'Publish'
env:
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}
run: mvn -B clean source:jar javadoc:jar deploy -DskipTests=true