Skip to content

Commit ca8bd45

Browse files
Remove external dependencies (#74)
* Add namespace sunat info * Fix license * Save changes * Save changes * Make test work except 1 * Add webpage template * Remove security conditionals * Removed unused code
1 parent 0b28b31 commit ca8bd45

File tree

485 files changed

+82161
-4970
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

485 files changed

+82161
-4970
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: [carlosthe19916]

.github/docker-prune.sh

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/workflows/ci-actions.yml

Lines changed: 47 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,39 +3,70 @@ name: CI
33
on:
44
push:
55
branches-ignore:
6-
- 'dependabot/**'
6+
- "dependabot/**"
77
paths-ignore:
8-
- 'README.md'
8+
- "README.md"
99
pull_request:
1010
paths-ignore:
11-
- 'README.md'
11+
- "README.md"
1212

1313
jobs:
14-
linux-jvm-tests:
15-
name: Tests
14+
jvm-tests:
15+
name: JVM Tests
1616
runs-on: ubuntu-latest
17-
strategy:
18-
matrix:
19-
flavor: [ "standalone", "enterprise" ]
20-
fail-fast: false
2117
steps:
2218
- uses: actions/checkout@v2
23-
- uses: actions/setup-java@v2.4.0
19+
- uses: actions/setup-java@v2
2420
with:
2521
java-version: 11
2622
distribution: temurin
2723
cache: maven
2824
- name: Maven
29-
run: mvn verify $MAVEN_ARGS
30-
env:
31-
MAVEN_ARGS: "-P${{ matrix.flavor }}"
25+
run: mvn test -Pui
3226
- name: Prepare failure archive (if maven failed)
3327
if: failure()
3428
shell: bash
3529
run: find . -name '*-reports' -type d | tar -czvf test-reports.tgz -T -
3630
- name: Upload failure archive (if maven failed)
37-
uses: actions/upload-artifact@v2.2.4
31+
uses: actions/upload-artifact@v2
3832
if: failure()
3933
with:
40-
name: test-reports-${{ matrix.flavor }}
41-
path: 'test-reports.tgz'
34+
name: test-reports-jvm
35+
path: "test-reports.tgz"
36+
37+
native-tests:
38+
name: Native Tests
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v2.4.0
42+
- uses: actions/setup-java@v2
43+
with:
44+
java-version: 11
45+
distribution: temurin
46+
cache: maven
47+
- name: Build with Maven
48+
run: mvn verify -Dquarkus.native.container-build=true -P native,ui
49+
50+
ui-tests:
51+
name: UI Tests
52+
runs-on: ubuntu-latest
53+
strategy:
54+
matrix:
55+
node-version: [ 12.x, 14.x ]
56+
steps:
57+
- uses: actions/checkout@v2
58+
- name: Use Node.js ${{ matrix.node-version }}
59+
uses: actions/setup-node@v2.5.0
60+
with:
61+
node-version: ${{ matrix.node-version }}
62+
- name: Build
63+
working-directory: src/main/webapp
64+
run: |
65+
yarn install
66+
yarn build
67+
- name: Test
68+
working-directory: src/main/webapp
69+
run: yarn test --coverage --watchAll=false
70+
- uses: codecov/codecov-action@v2.1.0
71+
with:
72+
flags: unitests

.github/workflows/container-images.yml

Lines changed: 16 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Container images generator
22

33
on:
44
push:
5-
branches-ignore:
6-
- 'dependabot/**'
5+
branches:
6+
- master
77

88
jobs:
99
container-images:
@@ -12,43 +12,21 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v2
15-
- uses: actions/setup-java@v2.4.0
15+
- uses: actions/setup-java@v2
1616
with:
1717
java-version: 11
1818
distribution: temurin
1919
cache: maven
20-
- name: Build with Maven
21-
run: mvn package -DskipTests -Dquarkus.package.type=fast-jar
22-
- name: Extract branch name
23-
shell: bash
24-
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
25-
id: extract_branch
26-
- name: Push to GitHub Packages
27-
uses: elgohr/Publish-Docker-Github-Action@master
28-
with:
29-
registry: docker.pkg.github.com
30-
name: project-openubl/ublhub/ublhub
31-
username: ${{ github.actor }}
32-
password: ${{ secrets.GITHUB_TOKEN }}
33-
dockerfile: src/main/docker/Dockerfile.fast-jar
34-
snapshot: false
35-
tags: ${{ steps.extract_branch.outputs.branch }}
36-
- name: Push to Docker Hub
37-
uses: elgohr/Publish-Docker-Github-Action@master
38-
with:
39-
name: projectopenubl/ublhub
40-
username: ${{ secrets.DOCKER_USERNAME }}
41-
password: ${{ secrets.DOCKER_PASSWORD }}
42-
dockerfile: src/main/docker/Dockerfile.fast-jar
43-
snapshot: false
44-
tags: ${{ steps.extract_branch.outputs.branch }}
45-
- name: Push to Quay.io
46-
uses: elgohr/Publish-Docker-Github-Action@master
47-
with:
48-
registry: quay.io
49-
name: projectopenubl/ublhub
50-
username: ${{ secrets.QUAYIO_USERNAME }}
51-
password: ${{ secrets.QUAYIO_PASSWORD }}
52-
dockerfile: src/main/docker/Dockerfile.fast-jar
53-
snapshot: false
54-
tags: ${{ steps.extract_branch.outputs.branch }}
20+
- name: Build container image
21+
run: |
22+
mvn -U -B package --file pom.xml -DskipTests \
23+
-Dquarkus.native.container-build=true \
24+
-Dquarkus.container-image.push=true \
25+
-Dquarkus.container-image.build=true \
26+
-Dquarkus.container-image.registry=quay.io \
27+
-Dquarkus.container-image.group=projectopenubl \
28+
-Dquarkus.container-image.name=ublhub \
29+
-Dquarkus.container-image.tag=early-access \
30+
-Dquarkus.container-image.username=${{ secrets.QUAYIO_USERNAME }} \
31+
-Dquarkus.container-image.password=${{ secrets.QUAYIO_PASSWORD }} \
32+
-P native,ui
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: PR build container images comment by boot
2+
on: pull_request
3+
4+
jobs:
5+
comment:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Set up token
9+
id: token
10+
# This is a base64-encoded OAuth token for the "project-openubl-preview-bot" GitHub account, which has no secure access.
11+
run: echo "::set-output name=GH_TOKEN::`echo 'Z2hwX1dySmRZd1dTdkFVeHlFUDR2bUl4TUhBaHZaeURnNjQxMUNUTAo=' | base64 -d`"
12+
- name: Post Container image as PR comment
13+
uses: mshick/add-pr-comment@v1
14+
with:
15+
message: |
16+
🚀 Container image Preview ✨
17+
18+
The creation of the container image might take aproximately 10 minutes. Once it is available you can pull it using:
19+
```shell
20+
docker pull ghcr.io/${{github.event.pull_request.head.repo.full_name}}/${{github.event.repository.name}}:${{github.event.pull_request.head.ref}}
21+
docker pull ghcr.io/${{github.event.pull_request.head.repo.full_name}}/${{github.event.repository.name}}-enterprise:${{github.event.pull_request.head.ref}}
22+
```
23+
24+
- To watch the current status of the container image creation visit [Workflow runs](https://github.com/${{github.event.pull_request.head.repo.full_name}}/actions/workflows/pr-build-container-images.yml?query=branch%3A${{github.event.pull_request.head.ref}})
25+
- To see the list of packages created by the boot visit [Packages](https://github.com/${{github.event.pull_request.head.repo.full_name}}/packages)
26+
repo-token: ${{ steps.token.outputs.GH_TOKEN }}

.github/workflows/pr-build-container-images-comment.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/workflows/pr-build-container-images.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,22 @@ jobs:
1414
java-version: 11
1515
distribution: temurin
1616
cache: maven
17+
1718
- name: Extract branch name
1819
shell: bash
1920
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
2021
id: extract_branch
21-
- name: Build and Push to GitHub Packages
22+
23+
- name: Build container image
2224
run: |
23-
mvn package \
24-
-Pnative -Dquarkus.container-image.build=true -DskipTests \
25+
mvn -U -B package --file pom.xml -DskipTests \
26+
-Dquarkus.container-image.build=true \
2527
-Dquarkus.container-image.push=true \
28+
-Dquarkus.container-image.build=true \
29+
-Dquarkus.container-image.registry=ghcr.io \
2630
-Dquarkus.container-image.group=${{ github.repository_owner }} \
2731
-Dquarkus.container-image.name=${{ github.event.repository.name }}/ublhub \
2832
-Dquarkus.container-image.tag=${{ steps.extract_branch.outputs.branch }} \
29-
-Dquarkus.container-image.registry=ghcr.io \
3033
-Dquarkus.container-image.username=${{ github.actor }} \
31-
-Dquarkus.container-image.password=${{ secrets.GITHUB_TOKEN }}
34+
-Dquarkus.container-image.password=${{ secrets.GITHUB_TOKEN }} \
35+
-P native,ui

0 commit comments

Comments
 (0)