-
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.
- Loading branch information
1 parent
a0d976a
commit 5aff071
Showing
3 changed files
with
39 additions
and
2 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 |
---|---|---|
|
@@ -15,6 +15,26 @@ permissions: | |
contents: read | ||
|
||
jobs: | ||
prettier: | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
# Make sure the actual branch is checked out when running on pull requests | ||
ref: ${{ github.head_ref }} | ||
# This is important to fetch the changes to the previous commit | ||
fetch-depth: 0 | ||
- name: Prettify code | ||
uses: creyD/[email protected] | ||
with: | ||
# This part is also where you can pass other options, for example: | ||
same_commit: true | ||
prettier_options: --write **/*.{js,md} | ||
only_changed: true # Prüft nur Dateien die geändert wurden | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
|
@@ -39,7 +59,7 @@ jobs: | |
name: Deploy | ||
runs-on: ubuntu-latest | ||
environment: aws | ||
needs: test | ||
needs: [test, prettier] | ||
|
||
steps: | ||
- name: Checkout | ||
|
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,17 @@ | ||
name: Lint | ||
on: [push] | ||
jobs: | ||
eslint_check: | ||
name: Prepare action | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checkout action must run prior to eslint check | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Lint | ||
uses: Krizzu/[email protected] | ||
with: | ||
ghToken: ${{ secrets.GITHUB_TOKEN }} | ||
# eslintFiles: "." | ||
# eslintConfig: "myConfigs/eslint.config.js" | ||
# eslintExt: "js, ts, jsx, tsx" |
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