Skip to content

テストフィクスチャをbuilder経由で作成する #214

テストフィクスチャをbuilder経由で作成する

テストフィクスチャをbuilder経由で作成する #214

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@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: corretto
java-version: 21
cache: gradle
- 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: backend test
run: |
make test
- 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@v4
- uses: actions/setup-java@v4
with:
distribution: corretto
java-version: 21
cache: gradle
- name: backend lint
run: |
make lint
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: build docker image
uses: docker/build-push-action@v5
with:
context: .
push: false