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

GitHub actions #55

Merged
merged 41 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
0e199d9
Implements github actions
kiwiswift Nov 11, 2024
4e24be0
Adds the action-change-labeler
kiwiswift Nov 11, 2024
64f5309
Adds the action-change-labeler
kiwiswift Nov 11, 2024
02ffad1
Adds the action-change-labeler
kiwiswift Nov 11, 2024
7bf5930
Adds the action-change-labeler
kiwiswift Nov 11, 2024
56c2ffd
Adds the action-change-labeler
kiwiswift Nov 11, 2024
91b5300
Adds the action-change-labeler
kiwiswift Nov 11, 2024
1b9971d
Adds the action-change-labeler
kiwiswift Nov 11, 2024
ada9076
Adds the action-change-labeler
kiwiswift Nov 11, 2024
0528e24
Adds the action-change-labeler
kiwiswift Nov 11, 2024
da1f19b
Adds the action-change-labeler
kiwiswift Nov 11, 2024
2556bb5
set working directory
kiwiswift Nov 11, 2024
24fc801
fixes workflows
kiwiswift Nov 11, 2024
6063688
fixes workflows
kiwiswift Nov 11, 2024
187e395
fixes workflows
kiwiswift Nov 11, 2024
47a7dd2
fixes workflows
kiwiswift Nov 11, 2024
1a0b13f
fixes workflows
kiwiswift Nov 11, 2024
24431cd
fixes workflows
kiwiswift Nov 11, 2024
29ab01e
fixes workflows
kiwiswift Nov 11, 2024
e9b47fb
Run workflows conditioned to compare changes
kiwiswift Nov 11, 2024
81b864c
Run workflows conditioned to compare changes
kiwiswift Nov 11, 2024
ba5fde2
Ignore workflow changes
kiwiswift Nov 11, 2024
df0c1bd
Reverts Ignoring workflow changes
kiwiswift Nov 11, 2024
1c104a7
Deactivating BE build and test
kiwiswift Nov 11, 2024
97454f8
Deactivating BE build and test
kiwiswift Nov 11, 2024
74c2624
FE Changes must run
kiwiswift Nov 12, 2024
72e1795
Merge branch 'master' into github-actions
kiwiswift Nov 12, 2024
ea1b084
FE Ignore workflows
kiwiswift Nov 12, 2024
b1cecb1
Changed logic that triggers workflows
kiwiswift Nov 12, 2024
fc5e1ce
Changed logic that triggers workflows
kiwiswift Nov 12, 2024
2f4b0e9
Changed logic that triggers workflows
kiwiswift Nov 12, 2024
91738d1
Changed logic that triggers workflows
kiwiswift Nov 12, 2024
f285fd0
Changed logic that triggers workflows
kiwiswift Nov 12, 2024
aa6baa6
Changed logic that triggers workflows
kiwiswift Nov 12, 2024
8b0df47
Changed logic that triggers workflows
kiwiswift Nov 12, 2024
03e1a9e
Changed logic that triggers workflows
kiwiswift Nov 12, 2024
1f8904d
Changed logic that triggers workflows
kiwiswift Nov 12, 2024
6592464
Changed logic that triggers workflows
kiwiswift Nov 12, 2024
da078be
Changed logic that triggers workflows
kiwiswift Nov 12, 2024
ba082ab
Changed logic that triggers workflows
kiwiswift Nov 12, 2024
1bb704f
Revert FE changes
kiwiswift Nov 12, 2024
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
11 changes: 5 additions & 6 deletions .github/workflows/backend-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,20 @@ on:
- "master"

jobs:
Compare-changes:
compare-changes:
uses: ./.github/workflows/compare-changes.yml

print-compare-changes-output:
runs-on: ubuntu-latest
needs: Compare-changes
needs: compare-changes
steps:
- run: echo "BackendDisable ${{ needs.compare-changes.outputs.backendDisable }}"
- run: printf "backendDisable ${{ needs.Compare-changes.outputs.backendDisable == 'true' }}\n"
printf "playwrightDisable ${{ needs.Compare-changes.outputs.playwrightDisable == 'true' }}"
- run: printf "should run frontend CI ${{ needs.Compare-changes.outputs.backendDisable == 'false' }}\n"

backend-tests:
needs:
- Compare-changes
if: ${{ needs.Compare-changes.outputs.backendDisable == 'false' }}
- compare-changes
if: ${{ needs.compare-changes.outputs.backendDisable == 'false' }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/compare-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ on:
workflow_call:
outputs:
backendDisable:
value: ${{ jobs.compare-changes.outputs.backendDisable && jobs.compare-changes.outputs.workflowsNotChanged }}
value: ${{ jobs.compare-changes.outputs.backendDisable && jobs.compare-changes.outputs.workflowsDisable }}
frontendDisable:
value: ${{ jobs.compare-changes.outputs.frontendDisable && jobs.compare-changes.outputs.workflowsNotChanged }}
value: ${{ jobs.compare-changes.outputs.frontendDisable && jobs.compare-changes.outputs.workflowsDisable }}
playwrightDisable:
value: ${{ jobs.compare-changes.outputs.playwrightDisable && jobs.compare-changes.outputs.workflowsDisable && jobs.compare-changes.outputs.backendDisable && jobs.compare-changes.outputs.frontendDisable }}

Expand All @@ -19,7 +19,7 @@ jobs:
backendDisable: ${{ !contains(fromJSON(steps.changed-files.outputs.changes), 'backend') }}
frontendDisable: ${{ !contains(fromJSON(steps.changed-files.outputs.changes), 'frontend') }}
playwrightDisable: ${{ !contains(fromJSON(steps.changed-files.outputs.changes), 'playwright') }}
workflowsNotChanged: ${{ !contains(fromJSON(steps.changed-files.outputs.changes), 'workflows') }}
workflowsDisable: ${{ !contains(fromJSON(steps.changed-files.outputs.changes), 'workflows') }}
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/frontend-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:

frontend-test:
needs:
- Compare-changes
if: ${{ needs.Compare-changes.outputs.backendDisable == 'false' }}
- compare-changes
if: ${{ needs.compare-changes.outputs.frontendDisable == 'false' }}
runs-on: ubuntu-latest
defaults:
run:
Expand Down
Loading