Skip to content
Merged
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
10 changes: 6 additions & 4 deletions .github/workflows/java-release.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
name: Release-Java

on:
release:
types: [published]

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Maven Central Repository
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'adopt'
java-version: '8'
distribution: 'temurin'
server-id: central-portal
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
Expand Down
17 changes: 11 additions & 6 deletions .github/workflows/java-snapshot.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
name: Snapshot-Java

on:
push:
branches:
- main
- release/*
paths-ignore:
- '**.md'

jobs:
check-snapshot:
runs-on: ubuntu-latest
outputs:
IS_SNAPSHOT: ${{ steps.set_output_1.outputs.IS_SNAPSHOT }}
steps:
- name: Checkout codes
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Check deploy type
id: set_output_1
run: |
Expand All @@ -27,12 +32,12 @@ jobs:
if: ${{ needs.check-snapshot.outputs.IS_SNAPSHOT == 'true' }}
steps:
- name: Checkout codes
uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'adopt'
java-version: '8'
distribution: 'temurin'
server-id: central-portal
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
Expand Down
62 changes: 16 additions & 46 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Testing-Java

name: Testing
on:
push:
branches:
- main,
- feature/**
- fix/**
- main
- release/*
paths-ignore:
- '**.md'
pull_request:
branches:
- main,
- feature/**
- fix/**
- main
- release/*
paths-ignore:
- '**.md'

jobs:
build:
strategy:
matrix:
java: [ 8 ]
os: [ 'ubuntu-latest' ]
java: [ 8, 11, 17, 21, 25 ]
os: [ 'windows-latest', 'ubuntu-latest' ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout codes
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Cache local Maven repository
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
Expand All @@ -40,35 +40,5 @@ jobs:
run: |
cd source/java
bash build.sh
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Test with python
run: |
pip install grpcio-tools
python source/python/build.py
- name: Install Protoc for Rust
uses: arduino/setup-protoc@v2
with:
version: "23.x"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout code for Rust
uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
cd polaris-specification
mvn clean test -B -U
99 changes: 59 additions & 40 deletions source/go/api/v1/traffic_manage/fault_injection.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading