-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(header): adds actions to lint and build
Signed-off-by: Kai Henseler <[email protected]>
- Loading branch information
Showing
2 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Header Build and Create Pull Request | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'IONOS/**' | ||
- '!core/js/custom-elements/global-navigation/**' | ||
|
||
jobs: | ||
build-and-pr: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Install dependencies | ||
run: cd IONOS/ && npm ci | ||
|
||
- name: Run build | ||
run: cd IONOS/ && npm run build | ||
|
||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
commit-message: "build(header): auto build header" | ||
committer: github-actions[bot] | ||
author: ${{ github.actor }} <${{ github.actor_id }}> | ||
branch: header-build-output | ||
delete-branch: true | ||
signoff: true | ||
title: "Automated Header build output" | ||
body: "This PR was created automatically by GitHub Actions" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Header Code Quality | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'IONOS/**' | ||
|
||
jobs: | ||
code-quality: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: 'npm' | ||
|
||
- name: Install Dependencies | ||
run: cd IONOS/ && npm ci | ||
|
||
- name: Lint Headers | ||
run: cd IONOS/ && npm run lint | ||
continue-on-error: true | ||
|
||
- name: Prettier | ||
run: cd IONOS/ && npm run format:check | ||
continue-on-error: true |