Skip to content

Commit

Permalink
ci: use custom actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mivanov4tcs committed Oct 7, 2023
1 parent 839fe33 commit 0f91723
Show file tree
Hide file tree
Showing 20 changed files with 51 additions and 51 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
outputs:
matrix: ${{ steps.matrix.outputs.value }}
steps:
- uses: actions/checkout@v4.1.0
- uses: taiga-family/ci/actions/setup/[email protected].0
- uses: taiga-family/ci/actions/setup/checkout@v1.29.19
- uses: taiga-family/ci/actions/setup/[email protected].19
- 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
Expand All @@ -30,7 +30,7 @@ jobs:
matrix:
value: ${{ fromJSON(needs.setup.outputs.matrix) }}
steps:
- uses: taiga-family/ci/actions/run/[email protected].0
- uses: taiga-family/ci/actions/run/[email protected].19
with:
token: ${{ secrets.GITHUB_TOKEN }}
job: ${{ matrix.value }}
Expand All @@ -39,13 +39,13 @@ jobs:
needs: [wait]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.0
- uses: taiga-family/ci/actions/setup/[email protected].0
- uses: taiga-family/ci/actions/auto/approve/[email protected].0
- uses: taiga-family/ci/actions/setup/checkout@v1.29.19
- uses: taiga-family/ci/actions/setup/[email protected].19
- uses: taiga-family/ci/actions/auto/approve/[email protected].19
with:
token1: ${{ secrets.GITHUB_TOKEN }}
token2: ${{ secrets.TAIGA_FAMILY_APPROVE_BOT_PAT }}
- uses: taiga-family/ci/actions/run/[email protected].0
- uses: taiga-family/ci/actions/run/[email protected].19
if: env.IS_RELEASE_BRANCH == 'false'
with:
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto-author-assign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto-cleanup-caches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto-dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
2 changes: 1 addition & 1 deletion .github/workflows/auto-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto-remove-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
13 changes: 4 additions & 9 deletions .github/workflows/auto-update-icons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,15 @@ jobs:
if: ${{ !contains(github.head_ref , 'release/') }}
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: actions/[email protected]
if: env.SUPPORT_AUTO_PUSH == 'true'
with:
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]
- uses: taiga-family/ci/actions/setup/[email protected]
- run: |
npx nx prebuild icons
npx nx build icons
npx ts-node ./scripts/generate-used-icons.ts
npx eslint ./projects/cdk/constants/used-icons.ts --fix
npx prettier ./projects/cdk/constants/used-icons.ts --write
- uses: taiga-family/ci/actions/auto/[email protected]
if: env.SUPPORT_AUTO_PUSH == 'true'
- uses: taiga-family/ci/actions/auto/[email protected]
with:
message: icons have changed
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: Build packages
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/setup/[email protected]
- run: npm run run-many:build:libs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bundle-size-tracking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
- uses: taiga-family/ci/actions/setup/[email protected]
- run: npx nx build demo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
contents: read
security-events: write
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]

concurrency:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
IS_DRY_MODE: ${{ github.event.inputs.dryRun == 'true' }}
IS_RRE_RELEASE_MODE: ${{ contains(github.event.inputs.mode, 'prerelease') }}
steps:
- uses: actions/checkout@v4.1.0
- uses: taiga-family/ci/actions/setup/checkout@v1.29.19
with:
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
- uses: taiga-family/ci/actions/setup/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
if: ${{ !contains(github.event.workflow_run.head_branch, '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]

- name: Prepare demo before deploy from snapshots
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: 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/setup/[email protected]
- run: npx nx build demo --base-href='/'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
- uses: taiga-family/ci/actions/setup/[email protected]
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
[addon-doc, addon-charts, addon-commerce, addon-mobile, addon-table, addon-tablebars, icons, core, deep, kit]
name: ${{ 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]
- uses: taiga-family/ci/actions/setup/[email protected]

Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:
shard: [1, 2, 3]
name: playwright / (${{ matrix.shard }} of 3)
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/setup/[email protected]

Expand Down Expand Up @@ -171,7 +171,7 @@ jobs:
needs: [cypress, playwright]
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]

- name: Download artifacts / ${{ env.CYPRESS_SNAPSHOTS_ARTIFACTS_KEY }}
Expand Down
29 changes: 17 additions & 12 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,26 @@ jobs:
if: ${{ !contains(github.head_ref, 'release/') }}
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: actions/[email protected]
if: env.SUPPORT_AUTO_PUSH == 'true'
with:
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]
- uses: taiga-family/ci/actions/setup/[email protected]
- run: npm run typecheck
- run: npm run cspell -- --no-progress
- run: npm run prettier ${{ env.SUPPORT_AUTO_PUSH == 'true' && '-- --write' || '-- --check' }}
- run: npm run stylelint ${{ env.SUPPORT_AUTO_PUSH == 'true' && '-- --fix' || '' }}
- run: npm run lint ${{ env.SUPPORT_AUTO_PUSH == 'true' && '-- --fix' || '' }}
- run: |
if [[ "${{ env.SUPPORT_AUTO_PUSH }}" == "true" ]]; then
npm run prettier -- --write
npm run stylelint -- --fix
npm run lint -- --fix
else
npm run prettier -- --check
npm run stylelint
npm run lint
fi
- name: Apply changes after linting
if: env.SUPPORT_AUTO_PUSH == 'true'
uses: taiga-family/ci/actions/auto/[email protected]
uses: taiga-family/ci/actions/auto/[email protected]
with:
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}

concurrency:
group: lint-${{ github.workflow }}-${{ github.ref }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: Packages
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/setup/[email protected]
- uses: taiga-family/ci/actions/setup/config/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,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]
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/config/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: next
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/setup/[email protected]

Expand All @@ -29,7 +29,7 @@ jobs:
name: production
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/setup/[email protected]
id: nodejs-workspace
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
]
name: ${{ 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: Run tests for ${{ matrix.project }}
Expand All @@ -45,7 +45,7 @@ jobs:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.0
- uses: taiga-family/ci/actions/setup/checkout@v1.29.19
- uses: actions/[email protected]
with:
name: coverage-${{ github.workflow }}-${{ github.run_id }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
name: Validate tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.0
- uses: taiga-family/ci/actions/setup/checkout@v1.29.19
with:
fetch-depth: 0

Expand Down

0 comments on commit 0f91723

Please sign in to comment.