-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
SAID SEDOUD
committed
Jul 24, 2024
1 parent
0f8d8e7
commit d90842c
Showing
2 changed files
with
30 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,29 @@ | ||
#name: Build, format & test workflow | ||
# | ||
#on: [push] | ||
#env: | ||
# USER: signalconso | ||
# USE_TEXT_LOGS: true | ||
# | ||
#jobs: | ||
# # This workflow contains a single job called "greet" | ||
# build: | ||
# # The type of runner that the job will run on | ||
# runs-on: ubuntu-latest | ||
# services: | ||
# postgres: | ||
# image: postgres:14 | ||
# env: | ||
# POSTGRES_USER: signalconso | ||
# POSTGRES_DB: test_signalconso | ||
# POSTGRES_HOST_AUTH_METHOD: trust | ||
# ports: | ||
# - 5432:5432 | ||
# # Set health checks to wait until postgres has started | ||
# options: >- | ||
# --health-cmd pg_isready | ||
# --health-interval 10s | ||
# --health-timeout 5s | ||
# --health-retries 5 | ||
# | ||
# # Steps represent a sequence of tasks that will be | ||
# # executed as part of the job | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - name: Setup JDK | ||
# uses: actions/setup-java@v3 | ||
# with: | ||
# distribution: temurin | ||
# java-version: 17 | ||
# cache: 'sbt' | ||
# | ||
# - run: sudo apt-get update | ||
# - run: sudo apt-get install postgresql-client | ||
# - run: whoami | ||
# - run: psql -d postgresql://signalconso@localhost/test_signalconso -p 5432 -c "CREATE EXTENSION pg_trgm;" | ||
# - name: Build and Test | ||
# run: sbt scalafmtCheckAll scalafmtSbtCheck -v +test | ||
name: Build, format & test workflow | ||
|
||
on: [push] | ||
env: | ||
USER: signalconso | ||
USE_TEXT_LOGS: true | ||
|
||
jobs: | ||
# This workflow contains a single job called "greet" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
|
||
# Steps represent a sequence of tasks that will be | ||
# executed as part of the job | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 17 | ||
cache: 'sbt' | ||
|
||
- run: sudo apt-get update | ||
- run: whoami | ||
- name: Build and Test | ||
run: sbt scalafmtCheckAll scalafmtSbtCheck -v +test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters