generated from Tinkoff/angular-open-source-starter
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Showing
6 changed files
with
96 additions
and
44 deletions.
There are no files selected for viewing
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,14 +1,107 @@ | ||
name: 🤖 Auto approve by bot | ||
name: 🤖 Auto approve validation | ||
on: pull_request | ||
|
||
env: | ||
JOBS_NAME: '["build", "build-demo", "lint", "tests"]' | ||
|
||
jobs: | ||
setup: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
matrix: ${{ steps.matrix.outputs.value }} | ||
steps: | ||
- id: matrix | ||
run: echo "value=$JOBS_NAME" >> $GITHUB_OUTPUT | ||
|
||
wait: | ||
needs: [setup] | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
value: ${{ fromJSON(needs.setup.outputs.matrix) }} | ||
steps: | ||
- run: | | ||
echo "${{ matrix.value }}" | ||
- name: Wait for "${{ matrix.value }}" job to succeed | ||
uses: fountainhead/[email protected] | ||
id: waiter | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
checkName: ${{ matrix.value }} | ||
ref: ${{ github.event.pull_request.head.sha || github.sha }} | ||
timeoutSeconds: 10800 | ||
intervalSeconds: 15 | ||
|
||
- name: Do something with a passing build | ||
if: steps.waiter.outputs.conclusion == 'success' | ||
run: echo 'success' | ||
|
||
- name: Do something with a failing build | ||
if: steps.waiter.outputs.conclusion == 'failure' | ||
run: echo 'failure' | ||
|
||
result: | ||
needs: [wait] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: | | ||
echo "approve" | ||
automated-pull-request: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
steps: | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- name: Wait for build to succeed | ||
uses: fountainhead/[email protected] | ||
id: wait1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
checkName: build | ||
ref: ${{ github.event.pull_request.head.sha || github.sha }} | ||
timeoutSeconds: 3600 | ||
intervalSeconds: 60 | ||
- name: Wait for build to succeed | ||
if: steps.wait1.outputs.conclusion == 'success' | ||
uses: fountainhead/[email protected] | ||
id: wait2 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
checkName: build-demo | ||
ref: ${{ github.event.pull_request.head.sha || github.sha }} | ||
timeoutSeconds: 3600 | ||
intervalSeconds: 60 | ||
- name: Wait for build to succeed | ||
if: steps.wait2.outputs.conclusion == 'success' | ||
uses: fountainhead/[email protected] | ||
id: wait3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
checkName: lint | ||
ref: ${{ github.event.pull_request.head.sha || github.sha }} | ||
timeoutSeconds: 3600 | ||
intervalSeconds: 60 | ||
- name: Wait for build to succeed | ||
if: steps.wait3.outputs.conclusion == 'success' | ||
uses: fountainhead/[email protected] | ||
id: wait-for-build | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
checkName: tests | ||
ref: ${{ github.event.pull_request.head.sha || github.sha }} | ||
timeoutSeconds: 3600 | ||
intervalSeconds: 60 | ||
|
||
- name: Do something with a passing build | ||
if: steps.wait-for-build.outputs.conclusion == 'success' | ||
run: echo 'success' | ||
|
||
- name: Do something with a failing build | ||
if: steps.wait-for-build.outputs.conclusion == 'failure' | ||
run: echo 'failure' | ||
|
||
- uses: taiga-family/ci/actions/auto/approve/[email protected] | ||
if: env.TAIGA_FAMILY_BOT_IS_AUTHOR == 'true' | ||
with: | ||
|
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
- main | ||
|
||
jobs: | ||
build: | ||
build-demo: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- 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 |
---|---|---|
|
@@ -8,7 +8,6 @@ on: | |
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: Build libs | ||
steps: | ||
- 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: ⚙️ E2E | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
|
||
env: | ||
CYPRESS_failOnSnapshotDiff: 0 | ||
|
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,6 @@ on: | |
|
||
jobs: | ||
tests: | ||
name: Unit tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
|