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.
- Loading branch information
splincode
committed
Sep 25, 2024
1 parent
31cd350
commit e2ccfd0
Showing
10 changed files
with
52 additions
and
58 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ jobs: | |
name: Packages | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.85.0 | ||
- uses: actions/checkout@v4.1.7 | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- run: npx nx run-many --target build --all --exclude=demo | ||
|
@@ -18,7 +18,7 @@ jobs: | |
name: Demo | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.85.0 | ||
- uses: actions/checkout@v4.1.7 | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- 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 |
---|---|---|
|
@@ -7,7 +7,7 @@ jobs: | |
name: Firebase | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.85.0 | ||
- uses: actions/checkout@v4.1.7 | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- 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 |
---|---|---|
|
@@ -9,7 +9,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
if: "contains(github.event.head_commit.message, 'chore(release)')" | ||
steps: | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.85.0 | ||
- uses: actions/checkout@v4.1.7 | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- 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 |
---|---|---|
|
@@ -12,7 +12,7 @@ jobs: | |
name: Build demo | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.85.0 | ||
- uses: actions/checkout@v4.1.7 | ||
with: | ||
fetch-depth: 10 | ||
|
||
|
@@ -42,7 +42,7 @@ jobs: | |
project: [date, date-range, date-time, number, time] | ||
name: Kit / ${{ matrix.project }} | ||
steps: | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.85.0 | ||
- uses: actions/checkout@v4.1.7 | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
|
||
|
@@ -67,7 +67,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
name: Recipes | ||
steps: | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.85.0 | ||
- uses: actions/checkout@v4.1.7 | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
|
||
|
@@ -90,7 +90,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
name: Others | ||
steps: | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.85.0 | ||
- uses: actions/checkout@v4.1.7 | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
|
||
|
@@ -116,7 +116,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
name: Component Testing | ||
steps: | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.85.0 | ||
- uses: actions/checkout@v4.1.7 | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- uses: taiga-family/ci/actions/setup/[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 |
---|---|---|
|
@@ -5,23 +5,23 @@ jobs: | |
typecheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.85.0 | ||
- uses: actions/checkout@v4.1.7 | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- run: npm run typecheck | ||
|
||
cspell: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.85.0 | ||
- uses: actions/checkout@v4.1.7 | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- run: npm run cspell -- --no-progress | ||
|
||
prettier: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.85.0 | ||
- uses: actions/checkout@v4.1.7 | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- run: npm run prettier ${{ env.SUPPORT_AUTO_PUSH == 'true' && '-- --write' || '-- --check' }} | ||
|
@@ -32,7 +32,7 @@ jobs: | |
stylelint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.85.0 | ||
- uses: actions/checkout@v4.1.7 | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- run: npm run stylelint ${{ env.SUPPORT_AUTO_PUSH == 'true' && '-- --fix' || '' }} | ||
|
@@ -43,7 +43,7 @@ jobs: | |
eslint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.85.0 | ||
- uses: actions/checkout@v4.1.7 | ||
- 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' || '' }} | ||
|
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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
name: 🤖 Auto approve validation | ||
on: pull_request | ||
name: 🤖 PR suites | ||
on: | ||
pull_request: | ||
pull_request_review: | ||
types: [submitted] | ||
|
||
env: | ||
PR_JOBS_NAME: '[ "Packages", "Demo", "Firebase", "Lint result", "tests", "E2E result" ]' | ||
|
@@ -10,10 +13,11 @@ jobs: | |
outputs: | ||
matrix: ${{ steps.matrix.outputs.value }} | ||
steps: | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.85.0 | ||
- uses: actions/checkout@v4.1.7 | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- id: matrix | ||
run: echo "value=$PR_JOBS_NAME" >> $GITHUB_OUTPUT | ||
if: env.IS_TAIGA_FAMILY_BOT_PR_AUTHOR == 'true' | ||
run: echo "value=$JOBS_NAME" >> $GITHUB_OUTPUT | ||
|
||
wait: | ||
needs: [setup] | ||
|
@@ -32,18 +36,41 @@ jobs: | |
needs: [wait] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.85.0 | ||
- uses: actions/checkout@v4.1.7 | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- uses: taiga-family/ci/actions/auto/approve/[email protected] | ||
if: env.IS_TAIGA_FAMILY_BOT_PR_AUTHOR == 'true' | ||
with: | ||
token1: ${{ secrets.GITHUB_TOKEN }} | ||
token2: ${{ secrets.TAIGA_FAMILY_APPROVE_BOT_PAT }} | ||
- uses: taiga-family/ci/actions/run/[email protected] | ||
if: ${{ env.IS_TAIGA_FAMILY_BOT_PR_AUTHOR == 'true' }} | ||
if: env.IS_TAIGA_FAMILY_BOT_PR_AUTHOR == 'true' | ||
with: | ||
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }} | ||
|
||
label-when-approved: | ||
name: Label when approved | ||
runs-on: ubuntu-latest | ||
if: github.event.review.state == 'APPROVED' | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- uses: taiga-family/ci/actions/auto/[email protected] | ||
with: | ||
approvals: 1 | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
assign-author: | ||
name: PR author as an assignee | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- uses: toshimaru/[email protected] | ||
if: env.IS_OWNER_MODE == 'true' | ||
with: | ||
repo-token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }} | ||
|
||
concurrency: | ||
group: auto-approve-${{ github.head_ref }} | ||
group: pr-suites-${{ github.head_ref }} | ||
cancel-in-progress: 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 |
---|---|---|
|
@@ -17,7 +17,7 @@ jobs: | |
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.85.0 | ||
- uses: actions/checkout@v4.1.7 | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- uses: taiga-family/ci/actions/run/[email protected] | ||
|
@@ -36,7 +36,7 @@ jobs: | |
chatId: ${{ secrets.TAIGA_TELEGRAM_CHAT_ID }} | ||
topicId: ${{ secrets.TAIGA_TELEGRAM_CHAT_THREAD_ID }} | ||
token: ${{ secrets.TAIGA_TELEGRAM_BOT_TOKEN }} | ||
version: ${{ steps.info.outputs.version }} | ||
version: v${{ steps.info.outputs.version }} | ||
textLink: '@maskito/core' | ||
|
||
concurrency: | ||
|
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: | |
tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.85.0 | ||
- uses: actions/checkout@v4.1.7 | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
|
||
|
@@ -28,7 +28,7 @@ jobs: | |
needs: [tests] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: taiga-family/ci/actions/setup/checkout@v1.85.0 | ||
- uses: actions/checkout@v4.1.7 | ||
- uses: actions/[email protected] | ||
with: | ||
name: coverage-${{ github.workflow }}-${{ github.run_id }} | ||
|