Skip to content

例外ハンドラを定義した #25

例外ハンドラを定義した

例外ハンドラを定義した #25

Workflow file for this run

name: CI
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-java@v3
with:
distribution: corretto
java-version: 17
cache: gradle
- uses: google-github-actions/setup-gcloud@v1
- name: cache sonar packages
uses: actions/cache@v3
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: launch docker
run: |
docker-compose up -d
- name: start spanner emulator
run: |
make init_spanner_emulator
- name: backend test
run: |
./gradlew test jacocoTestReport
- name: backend analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
./gradlew sonar
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: corretto
java-version: 17
cache: gradle
- name: backend lint
run: |
./gradlew spotlessCheck
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: corretto
java-version: 17
cache: gradle
- name: backend build
run: |
./gradlew quarkusBuild