ci(repo): add cache and concurrency

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2023-04-03 18:26:57 +05:30
committed by xsahil03x
parent caec2647d3
commit 61170a0921
4 changed files with 20 additions and 13 deletions
+6 -7
View File
@@ -11,6 +11,10 @@ on:
- master - master
- develop - develop
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs: jobs:
check: check:
name: dart-code-metrics name: dart-code-metrics
@@ -21,15 +25,10 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- name: "Cache Flutter dependencies"
uses: actions/cache@v2
with:
path: /opt/hostedtoolcache/flutter
key: ${{ env.flutter_version }}-flutter
- name: "Install Flutter" - name: "Install Flutter"
uses: subosito/flutter-action@v1 uses: subosito/flutter-action@v2
with: with:
cache: true
flutter-version: ${{ env.flutter_version }} flutter-version: ${{ env.flutter_version }}
- name: "Install Tools" - name: "Install Tools"
+4
View File
@@ -15,6 +15,10 @@ on:
paths-ignore: paths-ignore:
- 'docs/**' - 'docs/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs: jobs:
stream_chat: stream_chat:
runs-on: ubuntu-latest runs-on: ubuntu-latest
+4
View File
@@ -8,6 +8,10 @@ on:
branches: branches:
- develop - develop
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs: jobs:
conventional_pr_title: conventional_pr_title:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -12,6 +12,10 @@ on:
- master - master
- develop - develop
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs: jobs:
analyze: analyze:
timeout-minutes: 15 timeout-minutes: 15
@@ -22,14 +26,10 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Cache Flutter dependencies
uses: actions/cache@v2
with:
path: /opt/hostedtoolcache/flutter
key: ${{ env.flutter_version }}-flutter
- name: "Install Flutter" - name: "Install Flutter"
uses: subosito/flutter-action@v1 uses: subosito/flutter-action@v2
with: with:
cache: true
flutter-version: ${{ env.flutter_version }} flutter-version: ${{ env.flutter_version }}
- name: "Install Tools" - name: "Install Tools"
run: | run: |