Skip to content

Added GitHub CI pipeline #1

Added GitHub CI pipeline

Added GitHub CI pipeline #1

Workflow file for this run

name: CI - Tesing the Scala Linear Regression Algorithm
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt' # Poți alege adopt sau temurin, ambele sunt recomandate
- name: Cache SBT
uses: actions/cache@v2
with:
path: ~/.sbt
key: ${{ runner.os }}-sbt-${{ hashFiles('**/*.sbt') }}
restore-keys: |
${{ runner.os }}-sbt-
- name: Cache Ivy2
uses: actions/cache@v2
with:
path: ~/.ivy2
key: ${{ runner.os }}-ivy2-${{ hashFiles('**/*.sbt') }}
restore-keys: |
${{ runner.os }}-ivy2-
- name: Cache Coursier
uses: actions/cache@v2
with:
path: ~/.cache/coursier
key: ${{ runner.os }}-coursier-${{ hashFiles('**/*.sbt') }}
restore-keys: |
${{ runner.os }}-coursier-
- name: Install dependencies
run: sbt update
- name: Run tests
run: sbt test