Skip to content

Bump com.theokanning.openai-gpt3-java:service from 0.16.0 to 0.17.0 in /todo-service #436

Bump com.theokanning.openai-gpt3-java:service from 0.16.0 to 0.17.0 in /todo-service

Bump com.theokanning.openai-gpt3-java:service from 0.16.0 to 0.17.0 in /todo-service #436

Workflow file for this run

name: Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
environment: Production
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Make gradlew executable
working-directory: ./todo-service
run: chmod +x ./gradlew
- name: Build with Gradle
id: gradle
working-directory: ./todo-service
run: ./gradlew build
- name: Upload Test Report to Server
if: github.ref == 'refs/heads/main'
uses: wlixcc/[email protected]
with:
server: '${{ secrets.SERVER }}'
username: 'ubuntu'
ssh_private_key: '${{ secrets.SSH_PRIVATE_KEY }}'
local_path: './todo-service/build/reports/jacoco/test/html/*'
remote_path: '/home/ubuntu/todo/code-coverage'
args: '-o ConnectTimeout=5'
- name: Upload Jar to Server
if: github.ref == 'refs/heads/main'
uses: wlixcc/[email protected]
with:
server: '${{ secrets.SERVER }}'
username: 'ubuntu'
ssh_private_key: '${{ secrets.SSH_PRIVATE_KEY }}'
local_path: './todo-service/build/libs/todo-service-*-SNAPSHOT.jar'
remote_path: '/home/ubuntu/todo/todo-service'
args: '-o ConnectTimeout=5'
- name: Build and Run Service
if: github.ref == 'refs/heads/main'
uses: appleboy/[email protected]
with:
host: '${{ secrets.SERVER }}'
username: 'ubuntu'
key: '${{ secrets.SSH_PRIVATE_KEY }}'
script: |
cd /home/ubuntu/todo/todo-service
./quick.sh build
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: lts/*
- name: npm install
working-directory: ./todo-web
run: npm install
- name: npm run test
working-directory: ./todo-web
run: npm run test
- name: npm run build
working-directory: ./todo-web
run: npm run build