Skip to content

Commit

Permalink
Decentralize CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
QubitPi committed Nov 17, 2024
1 parent b1024e6 commit 65cde59
Show file tree
Hide file tree
Showing 50 changed files with 81 additions and 11,564 deletions.
60 changes: 49 additions & 11 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,51 @@ env:
EMAIL: jack20220723@gmail.com

jobs:
yml-md-style-and-link-checks:
uses: QubitPi/hashistack/.github/workflows/yml-md-style-and-link-checks.yml@master
cancel-previous:
name: Cancel Previous Runs In Order to Allocate Action Resources Immediately for Current Run
if: github.ref != 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- name: Cancel previous
uses: styfle/cancel-workflow-action@0.10.1
with:
access_token: ${{ github.token }}

yaml-lint:
name: YAML Style Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actionshub/yamllint@main

markdown-lint:
name: Markdown Style Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actionshub/markdownlint@main

linkChecker:
name: Link Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Link Checker
uses: lycheeverse/lychee-action@v1.9.0
with:
fail: true

tests:
name: Unit & Integration Tests
needs: yml-md-style-and-link-checks
needs: [yaml-lint, markdown-lint, linkChecker]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Test environment setup
uses: ./.github/actions/ci-setup
- name: Set up Docker for Integration Tests
uses: docker-practice/actions-setup-docker@master
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: ${{ env.JDK_VERSION }}
distribution: ${{ env.JDK_DISTRIBUTION }}
- name: Run unit & integration tests
run: mvn -B clean verify

Expand All @@ -52,8 +84,11 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Test environment setup
uses: ./.github/actions/ci-setup
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: ${{ env.JDK_VERSION }}
distribution: ${{ env.JDK_DISTRIBUTION }}
- name: Install dependencies
working-directory: docs
run: yarn
Expand Down Expand Up @@ -82,8 +117,11 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Test environment setup
uses: ./.github/actions/ci-setup
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: ${{ env.JDK_VERSION }}
distribution: ${{ env.JDK_DISTRIBUTION }}
- name: Build App WAR file so that Docker can pickup during image build
run: mvn clean package
- name: Set up QEMU
Expand Down
2 changes: 2 additions & 0 deletions .mdlrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
rules "~MD002", "~MD003", "~MD005", "~MD007", "~MD013", "~MD022", "~MD024", "~MD027", "~MD028", "~MD029", "~MD033", "~MD034", "~MD036", "~MD041", "~MD055", "~MD057"
style "#{File.dirname(__FILE__)}/markdownlint.rb"
23 changes: 23 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
extends: default
rules:
line-length:
max: 256
level: warning
document-start: disable
braces:
forbid: false
min-spaces-inside: 0
max-spaces-inside: 1
min-spaces-inside-empty: -1
max-spaces-inside-empty: -1
commas:
max-spaces-before: -1
min-spaces-after: 1
max-spaces-after: -1
brackets:
max-spaces-inside: -1
empty-lines:
max: 3
indentation:
spaces: 2
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Jersey Webservice Template

[Java Version Badge][Java Version Badge]
[![GitHub Workflow Status][GitHub Workflow Status]](https://github.com/QubitPi/jersey-webservice-template/actions/workflows/ci-cd.yml)
![Last Commit](https://img.shields.io/github/last-commit/QubitPi/jersey-webservice-template/master?logo=github&style=for-the-badge)
[![Apache License Badge]][Apache License, Version 2.0]

[Jersey Webservice Template (JWT)][jersey-webservice-template] is a [JSR 370] web service **template** that lets us
Expand All @@ -28,12 +27,6 @@ Coming Soon!
Documentation
-------------

JWT supports 3 kinds of webservice templates:

- [A general scaffolding without any vertical-business logics](https://qubitpi.github.io/jersey-webservice-template/docs/intro)
- [A JPA webservice template backed by yahoo/elide](https://qubitpi.github.io/jersey-webservice-template/docs/crud/)
- An async jobstore webservice template similar to yahoo/fili's JobStore design (Developing...)

Comprehensive documentation is viewable on our [website][Documentation]

License
Expand Down
8 changes: 0 additions & 8 deletions docs/docs/crud/_category_.json

This file was deleted.

124 changes: 0 additions & 124 deletions docs/docs/crud/configuration.mdx

This file was deleted.

8 changes: 0 additions & 8 deletions docs/docs/crud/elide/_category_.json

This file was deleted.

Loading

0 comments on commit 65cde59

Please sign in to comment.