add test to ci
This commit is contained in:
parent
834cb559ef
commit
39a9ca1831
1 changed files with 32 additions and 0 deletions
|
@ -35,6 +35,38 @@ jobs:
|
|||
- name: "Stop Gradle"
|
||||
working-directory: ./backend
|
||||
run: gradle --stop
|
||||
|
||||
test:
|
||||
name: "Test"
|
||||
runs-on: "vps-4"
|
||||
container:
|
||||
image: "cimg/openjdk:22.0-node"
|
||||
steps:
|
||||
- name: "Checkout"
|
||||
uses: actions/checkout@v3
|
||||
- name: Setup Java 22
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: "temurin"
|
||||
java-version: "22"
|
||||
- name: "Cache Gradle dependencies"
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.gradle/caches
|
||||
~/.gradle/wrapper
|
||||
key: gradle-${{ runner.os }}-common
|
||||
restore-keys: |
|
||||
gradle-${{ runner.os }}-
|
||||
- name: "Prepare Gradle"
|
||||
working-directory: ./backend
|
||||
run: gradle clean
|
||||
- name: "Test"
|
||||
working-directory: ./backend
|
||||
run: gradle test
|
||||
- name: "Stop Gradle"
|
||||
working-directory: ./backend
|
||||
run: gradle --stop
|
||||
|
||||
eslint:
|
||||
name: eslint
|
||||
|
|
Loading…
Add table
Reference in a new issue