Skip to content

Commit

Permalink
feat: improve workflows dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
razinj committed Jun 25, 2024
1 parent 5765679 commit 9aebcc5
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 26 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
name: build

on:
push:
branches:
- main
pull_request:
branches:
- main
# pull_request:
# branches:
# - main
workflow_run:
workflows: [tests]
workflows:
- tests
types:
- completed

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# concurrency:
# group: ${{ github.workflow }}-${{ github.ref }}
# cancel-in-progress: true

jobs:
prepare-artifacts:
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/code-style.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: code-style

on: [push]
on:
pull_request:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# concurrency:
# group: ${{ github.workflow }}-${{ github.ref }}
# cancel-in-progress: true

jobs:
check-formatting:
Expand Down
13 changes: 5 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,15 @@ on:
push:
tags:
- "*"
workflow_run:
workflows: [tests]
types:
- completed

jobs:
build-artifacts:
prepare-artifacts:
uses: ./.github/workflows/common-build.yml
secrets: inherit
create-release:
runs-on: ubuntu-latest
needs:
- prepare-artifacts
steps:
- name: Checkout Repository
uses: actions/checkout@v4
Expand All @@ -31,8 +29,7 @@ jobs:
id: create_release
uses: softprops/action-gh-release@v1
with:
make_latest: "true"
generate_release_notes: true
files: |
*.apk
*.aab
./apk/**/*.apk
./apk/**/*.aab
9 changes: 5 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ name: tests

on:
workflow_run:
workflows: [code-style]
workflows:
- code-style
types:
- completed

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# concurrency:
# group: ${{ github.workflow }}-${{ github.ref }}
# cancel-in-progress: true

jobs:
jest:
Expand Down

0 comments on commit 9aebcc5

Please sign in to comment.