Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip ci #501

Merged
merged 5 commits into from
Sep 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 31 additions & 8 deletions .github/workflows/violet-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,35 @@ on:
pull_request:
branches:
- "dev"
paths:
- ".github/workflows/violet-build.yml"
- "violet/**"
merge_group:
workflow_dispatch:

jobs:
format:
app-changes:
runs-on: ubuntu-latest
# Required permissions
permissions:
pull-requests: read
# Set job outputs to values from filter step
outputs:
src: ${{ steps.filter.outputs.src }}
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha || github.event.merge_group.head_sha }}

# For pull requests it's not necessary to checkout the code
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
src:
- ".github/workflows/violet-build.yml"
- "violet/**"

app-format:
needs: app-changes
if: ${{ needs.app-changes.outputs.src == 'true' }}
runs-on: ubuntu-latest
defaults:
run:
Expand Down Expand Up @@ -43,9 +64,10 @@ jobs:
- name: Analyze
run: flutter analyze --no-fatal-infos

ios-build:
app-ios-build:
runs-on: macos-latest
needs: [format]
needs: [app-format, app-changes]
if: ${{ needs.app-changes.outputs.src == 'true' }}
defaults:
run:
working-directory: violet
Expand Down Expand Up @@ -97,9 +119,10 @@ jobs:
name: ipa-build
path: ./violet/Payload.ipa

android-build:
app-android-build:
runs-on: ubuntu-latest
needs: [format]
needs: [app-format, app-changes]
if: ${{ needs.app-changes.outputs.src == 'true' }}
defaults:
run:
working-directory: violet
Expand Down
Loading