Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Sync #24

Merged
merged 10 commits into from
Jan 31, 2024
68 changes: 68 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: CI

on:
push:
branches:
- 'main'
pull_request:
branches:
- 'main'
workflow_dispatch:

jobs:
build:
strategy:
fail-fast: false
matrix:
java: [ '21' ]
maven: [ '3.9.6' ]
#os: [ 'macos-12', 'ubuntu-22.04', 'windows-2022' ]
os: [ 'ubuntu-22.04' ]
name: Build (Java ${{ matrix.java }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
steps:
- name: Set up line endings
if: ${{ matrix.os == 'windows-2022' }}
run: |
git config --global core.autocrlf false
git config --global core.eol crlf

- name: Checkout
if: github.head_ref == ''
uses: actions/checkout@v3

- name: Checkout merge
if: github.head_ref != ''
uses: actions/checkout@v3
with:
ref: refs/pull/${{github.event.pull_request.number}}/merge

- name: Set up Cache
uses: actions/cache@v3
with:
path: |
~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-

- name: Set up Java ${{ matrix.java }}
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}

- name: Set up Maven ${{ matrix.maven }}
uses: stCarolas/setup-maven@v4.5
with:
maven-version: ${{ matrix.maven }}

- name: Build
id: build
run: mvn clean verify -B -U
env:
MAVEN_OPTS: >-
-Xmx2g
-Dmaven.wagon.http.retryHandler.count=5
-Dmaven.wagon.httpconnectionManager.ttlSeconds=25
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
34 changes: 0 additions & 34 deletions .github/workflows/maven-publish.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# 🎬 StreamSpace - Your Gateway to Entertainment 🎬🎉

[![Java CI with Maven](https://github.com/AkshathSai/StreamSpace/actions/workflows/ci-build.yml/badge.svg?branch=main)](https://github.com/AkshathSai/StreamSpace/actions/workflows/ci-build.yml)
![Maven](https://badgen.net/badge/icon/maven?icon=maven&label)
![GitHub](https://img.shields.io/github/license/akshathsai/TuneTrip)
[![Build Status](https://travis-ci.com/your-username/project-name.svg?branch=master)](https://travis-ci.com/your-username/project-name)
[![Coverage Status](https://coveralls.io/repos/github/your-username/project-name/badge.svg?branch=master)](https://coveralls.io/github/your-username/project-name?branch=master)

Dive into the world of StreamSpace, where entertainment meets innovation, and subscription fatigue becomes a thing of the past [^1]
Expand Down
Loading