Skip to content

refactor(auth): extract KeyPairRepository constructor's params into… #1188

refactor(auth): extract KeyPairRepository constructor's params into…

refactor(auth): extract KeyPairRepository constructor's params into… #1188

Workflow file for this run

name: CI
on:
push:
paths-ignore:
- 'docs/**'
- 'tools/**'
- 'docker/**.yml'
- LICENSE
- README.md
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
permissions:
contents: read
timeout-minutes: 360
strategy:
matrix:
os: [ubuntu-22.04]
java: [25]
scala: [3.8.3]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 #6.0.1
- name: Set up JDK
uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e #5.1.0
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Compile
working-directory: .
run: sbt compile
- name: Caching
uses: coursier/cache-action@bebeeb0e6f48ebad66d3783946588ecf43114433 #7.0.0
- name: Cache test DB image
id: dbimage
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae #5.0.5
with:
path: ~/.docker-image-cache/db.tar
key: docker-image-test-db-${{ hashFiles('src/test/resources/docker-compose.yml') }}
- name: Load cached image
if: steps.dbimage.outputs.cache-hit == 'true'
run: docker load -i ~/.docker-image-cache/db.tar
- name: Pull image (non-master)
if: steps.dbimage.outputs.cache-hit != 'true' && github.ref != 'refs/heads/master'
run: docker compose -f src/test/resources/docker-compose.yml pull
- name: Pull & save image (master)
if: steps.dbimage.outputs.cache-hit != 'true' && github.ref == 'refs/heads/master'
run: |
mkdir -p ~/.docker-image-cache
docker compose -f src/test/resources/docker-compose.yml pull
docker save $(docker compose -f src/test/resources/docker-compose.yml config --images) \
-o ~/.docker-image-cache/db.tar
- name: Create log file
working-directory: .
# Workaround for suddenly happen permission denied
run: mkdir logs && touch ./logs/test.log
- name: Run tests
working-directory: .
run: cp .env.example .env && sbt clean coverage testWithDb
- name: Send Coverage Report
working-directory: .
run: cp .env.example .env && sbt coverageReport coveralls
env:
# NOTE: send coverage report failed caused by `Couldn't find a repository matching this job.`
# COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
COVERALLS_FLAG_NAME: Scala ${{ matrix.scala }}
assemble:
runs-on: ${{ matrix.os }}
permissions:
contents: read
timeout-minutes: 360
strategy:
matrix:
os: [ubuntu-22.04]
java: [25]
scala: [3.8.3]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 #6.0.1
- name: Set up JDK
uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e #5.1.0
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Assemble
working-directory: .
run: sbt assembly