generated from Tinkoff/angular-open-source-starter
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: taiga-family-bot <[email protected]>
- Loading branch information
1 parent
5b4f314
commit d89450d
Showing
14 changed files
with
29 additions
and
44 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 |
---|---|---|
|
@@ -14,7 +14,7 @@ jobs: | |
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- id: matrix | ||
if: env.TAIGA_FAMILY_BOT_IS_AUTHOR == 'true' | ||
if: env.IS_TAIGA_FAMILY_BOT_PR_AUTHOR == 'true' | ||
run: | | ||
if [[ "${{ env.IS_RELEASE_BRANCH }}" == "false" ]]; then | ||
echo "value=$PR_JOBS_NAME" >> $GITHUB_OUTPUT | ||
|
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ jobs: | |
name: PR author as an assignee | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4.1.0 | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.29.19 | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- uses: toshimaru/[email protected] | ||
if: env.IS_OWNER_MODE == 'true' | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ jobs: | |
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v4.1.0 | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.29.19 | ||
- uses: taiga-family/ci/actions/auto/[email protected] | ||
if: github.event_name == 'push' | ||
with: | ||
|
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 |
---|---|---|
|
@@ -8,5 +8,5 @@ jobs: | |
dependency-review: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4.1.0 | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.29.19 | ||
- uses: taiga-family/ci/actions/security/[email protected] |
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ jobs: | |
name: Label when approved | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4.1.0 | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.29.19 | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- uses: taiga-family/ci/actions/auto/[email protected] | ||
with: | ||
|
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 |
---|---|---|
|
@@ -7,5 +7,5 @@ jobs: | |
remove_label: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4.1.0 | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.29.19 | ||
- uses: taiga-family/ci/actions/auto/[email protected] |
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 |
---|---|---|
|
@@ -10,7 +10,7 @@ jobs: | |
if: ${{ !contains(github.head_ref, 'release/') }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4.1.0 | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.29.19 | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- run: npx nx run-many --target build --all --exclude=demo | ||
|
||
|
@@ -19,7 +19,7 @@ jobs: | |
if: ${{ !contains(github.head_ref, 'release/') }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4.1.0 | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.29.19 | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- run: npx nx build-gh-pages | ||
|
||
|
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 |
---|---|---|
|
@@ -25,11 +25,9 @@ jobs: | |
env: | ||
IS_DRY_MODE: ${{ github.event.inputs.dryRun == 'true' }} | ||
steps: | ||
- uses: actions/checkout@v4.1.0 | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.29.19 | ||
with: | ||
fetch-depth: 0 | ||
persist-credentials: false | ||
ref: ${{ github.head_ref }} | ||
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }} | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- uses: taiga-family/ci/actions/setup/config/[email protected] | ||
|
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 |
---|---|---|
|
@@ -10,7 +10,7 @@ jobs: | |
name: Firebase | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4.1.0 | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.29.19 | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- run: npm run build | ||
|
||
|
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ jobs: | |
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4.1.0 | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.29.19 | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- run: npx nx build-gh-pages | ||
- uses: JamesIves/[email protected] | ||
|
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 |
---|---|---|
|
@@ -13,7 +13,7 @@ jobs: | |
name: Build demo | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4.1.0 | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.29.19 | ||
with: | ||
fetch-depth: 10 | ||
|
||
|
@@ -42,7 +42,7 @@ jobs: | |
project: [date, date-range, date-time, number, time] | ||
name: Kit / ${{ matrix.project }} | ||
steps: | ||
- uses: actions/checkout@v4.1.0 | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.29.19 | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
|
||
- name: Download demo build from cache | ||
|
@@ -67,7 +67,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
name: Recipes | ||
steps: | ||
- uses: actions/checkout@v4.1.0 | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.29.19 | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
|
||
- name: Download demo build from cache | ||
|
@@ -90,7 +90,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
name: Others | ||
steps: | ||
- uses: actions/checkout@v4.1.0 | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.29.19 | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
|
||
- name: Download demo build from cache | ||
|
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 |
---|---|---|
|
@@ -5,62 +5,49 @@ jobs: | |
typecheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4.1.0 | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.29.19 | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- run: npm run typecheck | ||
|
||
cspell: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4.1.0 | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.29.19 | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- run: npm run cspell -- --no-progress | ||
|
||
prettier: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4.1.0 | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.29.19 | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- uses: actions/[email protected] | ||
if: env.SUPPORT_AUTO_PUSH == 'true' | ||
with: | ||
ref: ${{ github.head_ref }} | ||
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }} | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- run: npm run prettier ${{ env.SUPPORT_AUTO_PUSH == 'true' && '-- --write' || '-- --check' }} | ||
- uses: taiga-family/ci/actions/auto/[email protected] | ||
if: env.SUPPORT_AUTO_PUSH == 'true' | ||
with: | ||
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }} | ||
|
||
stylelint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4.1.0 | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.29.19 | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- uses: actions/[email protected] | ||
if: env.SUPPORT_AUTO_PUSH == 'true' | ||
with: | ||
ref: ${{ github.head_ref }} | ||
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }} | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- run: npm run stylelint ${{ env.SUPPORT_AUTO_PUSH == 'true' && '-- --fix' || '' }} | ||
- uses: taiga-family/ci/actions/auto/[email protected] | ||
if: env.SUPPORT_AUTO_PUSH == 'true' | ||
with: | ||
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }} | ||
|
||
eslint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Setup global variables | ||
uses: taiga-family/ci/actions/setup/[email protected] | ||
- uses: actions/[email protected] | ||
if: env.SUPPORT_AUTO_PUSH == 'true' | ||
with: | ||
ref: ${{ github.head_ref }} | ||
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }} | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- run: npm run lint ${{ env.SUPPORT_AUTO_PUSH == 'true' && '-- --fix' || '' }} | ||
- uses: taiga-family/ci/actions/auto/[email protected] | ||
if: env.SUPPORT_AUTO_PUSH == 'true' | ||
with: | ||
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }} | ||
|
||
result: | ||
needs: [typecheck, cspell, prettier, stylelint, eslint] | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ jobs: | |
name: Publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4.1.0 | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.29.19 | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- run: npx nx run-many --target build --all --exclude=demo | ||
- run: npx nx run-many --target publish --all --exclude=demo | ||
|
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ jobs: | |
if: ${{ !contains(github.head_ref, 'release/') }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4.1.0 | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.29.19 | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- run: npx nx run-many --target test --all --coverage | ||
- uses: codecov/[email protected] | ||
|