Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI
on:
push:
branches: ["supplychain-*"]
pull_request:
branches: ["supplychain-*"]

jobs:
build:
name: Build
runs-on: ${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || 'ubuntu-x64' }}
environment: test_docker
permissions:
id-token: write
contents: read
timeout-minutes: 20
steps:
- name: Checkout twilio-java
uses: actions/checkout@a37ce9120846195fa4ece8f58b268e6043cb2f26 # v3

- name: Set up Java
uses: actions/setup-java@17f84c3641ba7b8f6deff6309fc4c864478f5d62 # v3
with:
distribution: "temurin"
java-version: "11"
cache: "maven"

- name: Artifactory OIDC
if: ${{ !github.event.pull_request.head.repo.fork }}
uses: twilio/sdk-actions/artifactory-oidc@6edb931787e355cc04603d7708cd09ad8cf574a6 # java_maven
with:
ecosystem: "maven"

- name: Docker Hub OIDC
if: ${{ !github.event.pull_request.head.repo.fork }}
uses: twilio/sdk-actions/dockerhub-oidc@6edb931787e355cc04603d7708cd09ad8cf574a6 # java_maven

- name: Pull Docker image
if: ${{ !github.event.pull_request.head.repo.fork }}
# Placeholder for docker build and push — validates Docker Hub OIDC login
run: docker pull twilio/twilio-java:latest

- run: |
echo "Trying out an env var: ${{ vars.TEST_VAR }}"
echo "putting the secret in the file:"
echo "${{ secrets.TEST_SECRET }}" > test_secret.txt
ls -l test_secret.txt
cat test_secret.txt
od test_secret.txt
- run: mvn install -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true -B -V
12 changes: 6 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
</profiles>
<properties>
<jackson.version>2.18.6</jackson.version>
<javadoc.plugin.version>3.3.1</javadoc.plugin.version>
<javadoc.plugin.version>3.12.0</javadoc.plugin.version>
<jjwt.version>0.12.6</jjwt.version>
<lombok.version>1.18.34</lombok.version>
<mockito.version>5.14.2</mockito.version>
Expand Down Expand Up @@ -424,7 +424,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.3.0</version>
<version>3.8.0</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
Expand All @@ -443,15 +443,15 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.1.1</version>
<version>3.6.0</version>
<configuration>
<configLocation>checkstyle.xml</configLocation>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<version>3.4.0</version>
<executions>
<execution>
<id>attach-sources</id>
Expand Down Expand Up @@ -490,7 +490,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<version>3.3.1</version>
<configuration>
<tagNameFormat>@{project.version}</tagNameFormat>
<arguments>-DskipTests=${skip.tests}</arguments>
Expand Down Expand Up @@ -534,7 +534,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0</version>
<version>3.4.1</version>
<executions>
<execution>
<id>enforce-versions</id>
Expand Down
Loading