Skip to content

Commit

Permalink
Merge pull request #2 from bmg13/add_github_actions
Browse files Browse the repository at this point in the history
Added 1st iteration of github actions.
  • Loading branch information
bmg13 authored Mar 19, 2024
2 parents 9567548 + 69659ae commit 82a0c73
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: GitHub Actions
run-name: ${{ github.actor }} github actions
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: echo "The job was automatically triggered by a ${{ github.event_name }} event."
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Running tests
run: mvn test
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
public class FilmServiceImpl implements FilmService {

// mocked data for testing purposes
@ConfigProperty(name = "film.language")
@ConfigProperty(name = "film.language", defaultValue = "English")
private String language;

private final List<Film> initialFilms = List.of(
Expand Down
6 changes: 6 additions & 0 deletions src/test/resources/application.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# can be overridden on boot
# properties value can be set by profile
%dev.film.language=English
%prod.film.language=English
%dev.quarkus.log.category."io.quarkus".level=DEBUG
%prod.quarkus.log.category."io.quarkus".level=INFO

0 comments on commit 82a0c73

Please sign in to comment.