Skip to content

Commit

Permalink
Fix github workflows
Browse files Browse the repository at this point in the history
 - add kubernetes manifest files
  • Loading branch information
tuplle committed Dec 11, 2023
1 parent 76a5071 commit bf19c93
Show file tree
Hide file tree
Showing 8 changed files with 317 additions and 195 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/master-build.yaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
name: Master Build
on:
push:
branches: [ master ]
push:
branches: [ master ]
jobs:
build:
name: Build and update doc
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- run: npm i --legacy-peer-deps
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- run: npm i --legacy-peer-deps

- name: Test
# run: npm run full-test
run: npm run lint && npm run build
- name: Test
# run: npm run full-test
run: npm run lint && npm run build

# - name: Edit Path
# run: |
# sed -i 's/SF:.*.src/SF:src/g' coverage/lcov.info
# sed -i 's/SF:.*.src/SF:src/g' coverage/lcov.info
- name: SonarCloud scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# - name: Edit Path
# run: |
# sed -i 's/SF:.*.src/SF:src/g' coverage/lcov.info
# sed -i 's/SF:.*.src/SF:src/g' coverage/lcov.info
- name: SonarCloud scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
58 changes: 29 additions & 29 deletions .github/workflows/pr-build.yaml
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
name: PR Test Build
on:
pull_request:
types: [ opened, synchronize, reopened ]
pull_request:
types: [ opened, synchronize, reopened ]
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
build:
name: Build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- run: npm i --legacy-peer-deps
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- run: npm i --legacy-peer-deps

- name: Lint
run: npm run lint
- name: Lint
run: npm run lint

- name: Check spelling
run: npm run spell
- name: Check spelling
run: npm run spell

- name: Test
run: npm run test
- name: Test
run: npm run test

- name: Edit Path
run: |
sed -i 's/SF:.*.src/SF:src/g' coverage/lcov.info
sed -i 's/SF:.*.src/SF:src/g' coverage/lcov.info
- name: SonarCloud scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Edit Path
run: |
sed -i 's/SF:.*.src/SF:src/g' coverage/lcov.info
sed -i 's/SF:.*.src/SF:src/g' coverage/lcov.info
- name: SonarCloud scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
139 changes: 73 additions & 66 deletions .github/workflows/release-build.yaml
Original file line number Diff line number Diff line change
@@ -1,81 +1,88 @@
name: Publish a release
on:
release:
types: [ published ]
release:
types: [ published ]
jobs:
publish-docker:
name: Docker build image and publish
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
publish-docker:
name: Docker build image and publish
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v4
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_AUTH_TOKEN }}
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_AUTH_TOKEN }}

- name: Read package.json
uses: zvonimirsun/read-package-version-actions@v2
id: getVersion
- name: Read package.json
uses: zvonimirsun/read-package-version-actions@v2
id: getVersion

- name: Push Version ${{ steps.getVersion.outputs.version }}
uses: docker/build-push-action@v5
with:
push: true
tags: netgrif/application-builder:${{ steps.getVersion.outputs.version }}
- name: Push Version ${{ steps.getVersion.outputs.version }}
uses: docker/build-push-action@v5
with:
push: true
tags: netgrif/application-builder:${{ steps.getVersion.outputs.version }}

- name: Push Latest
if: ${{ !contains(steps.getVersion.outputs.version, '-') }}
uses: docker/build-push-action@v5
with:
push: true
tags: netgrif/application-builder:latest
- name: Push Latest
if: ${{ !contains(steps.getVersion.outputs.version, '-') }}
uses: docker/build-push-action@v5
with:
push: true
tags: netgrif/application-builder:latest

publish-assets:
name: Upload Release Assets
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
id-token: write
security-events: write
steps:
- uses: actions/checkout@v4
- name: Push Next
if: ${{ contains(steps.getVersion.outputs.version, '-') }}
uses: docker/build-push-action@v5
with:
push: true
tags: netgrif/application-builder:next

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
publish-assets:
name: Upload Release Assets
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
id-token: write
security-events: write
steps:
- uses: actions/checkout@v4

- name: Read package.json
uses: zvonimirsun/read-package-version-actions@v2
id: getVersion
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Build
run: |
npm i --legacy-peer-deps
npm run build
- name: Read package.json
uses: zvonimirsun/read-package-version-actions@v2
id: getVersion

- name: Build project
run: |
zip -r netgrif-application-builder-${{ steps.getVersion.outputs.version }}.zip target/application-builder
- name: Build
run: |
npm i --legacy-peer-deps
npm run build
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: netgrif-application-builder-${{ steps.getVersion.outputs.version }}.zip
asset_name: netgrif-application-builder-${{ steps.getVersion.outputs.version }}.zip
tag: ${{ github.ref }}
overwrite: true
- name: Build project
run: |
zip -r netgrif-application-builder-${{ steps.getVersion.outputs.version }}.zip target/application-builder
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: netgrif-application-builder-${{ steps.getVersion.outputs.version }}.zip
asset_name: netgrif-application-builder-${{ steps.getVersion.outputs.version }}.zip
tag: ${{ github.ref }}
overwrite: true
77 changes: 7 additions & 70 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,16 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

Full Changelog: [https://github.com/netgrif/application-builder/commits/v1.0.0](https://github.com/netgrif/application-builder/commits/v1.0.0)

## [v1.0.0](https://github.com/netgrif/application-builder/releases/tag/v1.0.0) (2023-12-11)

### Added

- Initial open-source release of Netgrif Application Builder

[//]: # (TODO CHANGELOG)

<!-- Template
## [version](https://github.com/netgrif/components/releases/tag/v) (YYYY-MM-dd)
## [version](https://github.com/netgrif/application-builder/releases/tag/v) (YYYY-MM-dd)
### Added
- for new features.
### Changed
Expand All @@ -24,72 +30,3 @@ Full Changelog: [https://github.com/netgrif/application-builder/commits/v1.0.0](
### Security
- in case of vulnerabilities.
-->

-----

## OLD

<a name="https://netgrif.atlassian.net/issues/?jql=project%20%3D%20NAB%20AND%20fixVersion%20%3D%200.4.0"></a>

## 0.4.0 - Silver Dysprosium (10.09.2020)

### Bug Fixes

* [NAB-11](https://netgrif.atlassian.net/browse/NAB-11) - Data variable editor text overflow
* [NAB-95](https://netgrif.atlassian.net/browse/NAB-95) - Arc data reference bug
* [NAB-97](https://netgrif.atlassian.net/browse/NAB-97) - Forms inconsistent in modeler
* [NAB-107](https://netgrif.atlassian.net/browse/NAB-107) - Nezobrazuju sa novo pridane procesy v project overview
* [NAB-117](https://netgrif.atlassian.net/browse/NAB-117) - Data field ids generated as [object Object]
* [NAB-118](https://netgrif.atlassian.net/browse/NAB-118) - Form builder always displays calendar value selection

### Improvements

* [NAB-62](https://netgrif.atlassian.net/browse/NAB-62) - Form builder refactor
* [NAB-124](https://netgrif.atlassian.net/browse/NAB-124) - Select tool preselected by default on modeler screen
* [NAB-125](https://netgrif.atlassian.net/browse/NAB-125) - Add action button to transition context menu

### Features

* [NAB-123](https://netgrif.atlassian.net/browse/NAB-123) - File list data field

<a name="https://netgrif.atlassian.net/issues/?jql=project+%3D+%22NAB%22+AND+fixVersion+%3D+%220.3.0%22"></a>

## 0.3.0 - Aqua Neon (24.07.2020)

### Bug Fixes

* [NAB-31](https://netgrif.atlassian.net/browse/NAB-31) - Form builder - inconsistent number of cols
* [NAB-28](https://netgrif.atlassian.net/browse/NAB-28) - Dashboard tiles refresh
* [NAB-25](https://netgrif.atlassian.net/browse/NAB-25) - Actions has the same id
* [NAB-24](https://netgrif.atlassian.net/browse/NAB-24) - Transition actions have trigger PRE/POST
* [NAB-17](https://netgrif.atlassian.net/browse/NAB-17) - Custom field inconsistencies
* [NAB-16](https://netgrif.atlassian.net/browse/NAB-16) - Builder does not load on Firefox
* [NAB-14](https://netgrif.atlassian.net/browse/NAB-14) - XML special chars are not escaped

### Improvements

* [NAB-100](https://netgrif.atlassian.net/browse/NAB-100) - Form builder default values
* [NAB-96](https://netgrif.atlassian.net/browse/NAB-96) - Jenkins Pipeline
* [NAB-51](https://netgrif.atlassian.net/browse/NAB-51) - Custom datafield export

### Features

* [NAB-93](https://netgrif.atlassian.net/browse/NAB-93) - I18n view
* [NAB-91](https://netgrif.atlassian.net/browse/NAB-91) - Modeler Tour
* [NAB-77](https://netgrif.atlassian.net/browse/NAB-77) - Automation policies
* Task icon is displayed in modeler in the middle of the transition rectangle

### Tasks

* [NAB-8](https://netgrif.atlassian.net/browse/NAB-8) - Datetime field refactor

<a name=""></a>

## 0.2.0 - Navy Hafnium

### Features

* Resizable action editor
* Tables can be sorted by clicking on its headers
* Side editors can be resized
* Data fields options can be edited in the Data variable editor
Loading

0 comments on commit bf19c93

Please sign in to comment.