Skip to content

Commit

Permalink
ci: cleanup workflow yml files
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Sep 25, 2024
1 parent 31cd350 commit e2ccfd0
Show file tree
Hide file tree
Showing 10 changed files with 52 additions and 58 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/auto-author-assign.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/auto-label.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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]

Expand All @@ -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]

Expand All @@ -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]

Expand All @@ -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]

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
Expand All @@ -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' || '' }}
Expand All @@ -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' || '' }}
Expand Down
41 changes: 34 additions & 7 deletions .github/workflows/auto-approve.yml → .github/workflows/pr.yml
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" ]'
Expand All @@ -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]
Expand All @@ -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
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand All @@ -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 }}
Expand Down

0 comments on commit e2ccfd0

Please sign in to comment.