Skip to content

Commit

Permalink
added basic github actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jakegodsall committed Jan 5, 2025
1 parent 201409d commit 747e586
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/push-develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Test on develop

on:
push:
branches:
- develop

jobs:
test:
uses: ./github/workflows/test.yml
with:
branch: develop
12 changes: 12 additions & 0 deletions .github/workflows/push-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Test and deploy on main

on:
push:
branches:
- main

jobs:
test:
uses: ./.github/workflows/test.yml
with:
branch: main
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Test Workflow

on:
workflow_call:
inputs:
branch:
required: true
type: string
secrets:
maven_central_username:
required: false
maven_central_password:
required: false

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Build and test using Docker
run: |
docker build -t flashcard-generator-core .
docker run --rm \
-v "$(pwd)":/app \
flashcard-generator-core

0 comments on commit 747e586

Please sign in to comment.