Skip to content

Commit

Permalink
Run SDK test on PR (#35)
Browse files Browse the repository at this point in the history
Close #33
  • Loading branch information
tokuhirom authored Oct 26, 2023
1 parent 0e20d4f commit 0f859b7
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/sdk-testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: SDK Test Automation

on:
pull_request:
branches:
- main

jobs:
test-java:
runs-on: ubuntu-latest

steps:
- name: Checkout SDK repo
uses: actions/checkout@v2
with:
repository: 'line/line-bot-sdk-java'
submodules: recursive

- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'

- name: Update line-openapi submodule
run: |
cd line-openapi
git remote add pr-source ${{ github.event.pull_request.head.repo.clone_url }}
git fetch pr-source ${{ github.event.pull_request.head.ref }}
git checkout FETCH_HEAD
- name: Generate code
run: python3 generate-code.py

- name: Execute Java SDK test
run: ./gradlew build

0 comments on commit 0f859b7

Please sign in to comment.