Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: CI

permissions:
contents: read
checks: write
pull-requests: write

on:
push:
branches: [ main, develop ]
Expand All @@ -10,6 +15,10 @@ jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
permissions:
contents: read
checks: write
pull-requests: write

strategy:
matrix:
Expand Down Expand Up @@ -65,6 +74,8 @@ jobs:
code-quality:
name: Code Quality Checks
runs-on: ubuntu-latest
permissions:
contents: read

steps:
- name: Checkout code
Expand Down Expand Up @@ -100,6 +111,8 @@ jobs:
dependency-check:
name: Dependency Security Scan
runs-on: ubuntu-latest
permissions:
contents: read

steps:
- name: Checkout code
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Release

permissions:
contents: write

on:
push:
tags:
Expand All @@ -9,6 +12,8 @@ jobs:
release:
name: Create Release
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Checkout code
Expand Down Expand Up @@ -83,6 +88,8 @@ jobs:
runs-on: ubuntu-latest
needs: release
if: github.repository_owner == 'yourusername' # Replace with your GitHub username
permissions:
contents: read

steps:
- name: Checkout code
Expand Down Expand Up @@ -110,6 +117,8 @@ jobs:
name: Publish Javadoc to GitHub Pages
runs-on: ubuntu-latest
needs: release
permissions:
contents: write

steps:
- name: Checkout code
Expand Down
Loading