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 24, 2024
1 parent 67c3c10 commit 73624c1
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 55 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/auto-add-to-project.yml

This file was deleted.

10 changes: 2 additions & 8 deletions .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ on: pull_request

env:
PR_JOBS_NAME: '[ "Packages", "Demo", "Firebase", "Lint result", "tests", "E2E result" ]'
RELEASE_JOBS_NAME: '[ "Publish" ]'

jobs:
setup:
Expand All @@ -14,12 +13,7 @@ jobs:
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- id: matrix
run: |
if [[ "${{ env.IS_RELEASE_BRANCH }}" == "false" ]]; then
echo "value=$PR_JOBS_NAME" >> $GITHUB_OUTPUT
else
echo "value=$RELEASE_JOBS_NAME" >> $GITHUB_OUTPUT
fi
run: echo "value=$PR_JOBS_NAME" >> $GITHUB_OUTPUT

wait:
needs: [setup]
Expand All @@ -46,7 +40,7 @@ jobs:
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' && env.IS_RELEASE_BRANCH == 'false' }}
if: ${{ env.IS_TAIGA_FAMILY_BOT_PR_AUTHOR == 'true' }}
with:
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}

Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/auto-dependency-review.yml

This file was deleted.

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

This file was deleted.

2 changes: 0 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
jobs:
build-packages:
name: Packages
if: ${{ !contains(github.head_ref, 'release/') }}
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/setup/[email protected]
Expand All @@ -17,7 +16,6 @@ jobs:

build-demo:
name: Demo
if: ${{ !contains(github.head_ref, 'release/') }}
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/setup/[email protected]
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on: pull_request

jobs:
build_and_preview:
if: ${{ !contains(github.head_ref, 'release/') }}
name: Firebase
runs-on: ubuntu-latest
steps:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ name: Deploy
on:
workflow_dispatch:
push:
branches: ['release/*']
branches: [main]

jobs:
deploy:
runs-on: ubuntu-latest
if: "contains(github.event.head_commit.message, 'chore(release)')"
steps:
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ env:

jobs:
build-demo:
if: ${{ !contains(github.head_ref, 'release/') }}
name: Build demo
runs-on: ubuntu-latest
steps:
Expand All @@ -35,7 +34,6 @@ jobs:
run: npm run build:ssr

e2e-kit:
if: ${{ !contains(github.head_ref, 'release/') }}
needs: [build-demo]
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -65,7 +63,6 @@ jobs:
env.UNIVERSAL_SERVER}}

e2e-recipes:
if: ${{ !contains(github.head_ref, 'release/') }}
needs: [build-demo]
runs-on: ubuntu-latest
name: Recipes
Expand All @@ -89,7 +86,6 @@ jobs:
run: npx nx e2e demo-integrations --spec="**/recipes/**/*.cy.ts" --baseUrl=${{ env.UNIVERSAL_SERVER}}

e2e-others:
if: ${{ !contains(github.head_ref, 'release/') }}
needs: [build-demo]
runs-on: ubuntu-latest
name: Others
Expand Down Expand Up @@ -117,7 +113,6 @@ jobs:
env.UNIVERSAL_SERVER}}

component-testing:
if: ${{ !contains(github.head_ref, 'release/') }}
runs-on: ubuntu-latest
name: Component Testing
steps:
Expand All @@ -129,7 +124,6 @@ jobs:
run: npx nx component-test demo-integrations --browser=chrome

result:
if: ${{ !contains(github.head_ref, 'release/') }}
needs: [build-demo, e2e-kit, e2e-recipes, e2e-others, component-testing]
runs-on: ubuntu-latest
name: E2E result
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ on:
jobs:
release:
runs-on: ubuntu-latest
if: !contains(github.event.head_commit.message , 'chore(release)')
steps:
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:

jobs:
tests:
if: ${{ !contains(github.head_ref, 'release/') }}
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/setup/[email protected]
Expand Down

0 comments on commit 73624c1

Please sign in to comment.