Skip to content

Commit

Permalink
ci: update workflows (#577)
Browse files Browse the repository at this point in the history
Co-authored-by: taiga-family-bot <[email protected]>
  • Loading branch information
splincode and taiga-family-bot authored Oct 8, 2023
1 parent 5b4f314 commit d89450d
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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]
4 changes: 2 additions & 2 deletions .github/workflows/build.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]
- run: npx nx run-many --target build --all --exclude=demo

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

Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
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 @@ -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

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
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

Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
37 changes: 12 additions & 25 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit d89450d

Please sign in to comment.