Skip to content

Commit

Permalink
add workflows for different stages
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomontero committed May 7, 2024
1 parent f1f3aa9 commit 78c609d
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/dev.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: Run Tests on Branch
on: [push]
on:
push:
branches:
- '**'
- '!master'
- '!staging'
jobs:
call-tests:
uses: ./.github/workflows/tests.yml
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Run Tests on Branch
on:
push:
tags:
- v*
jobs:
call-tests:
uses: ./.github/workflows/tests.yml
secrets: inherit
call-build:
uses: ./.github/workflows/build.yml
secrets: inherit
needs: call-tests
call-publish-v2:
uses: ./.github/workflows/publish-v2.yml
secrets: inherit
needs: call-build
with:
environment: production
10 changes: 5 additions & 5 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ name: Run Tests on Branch
on:
push:
branches:
- 'feature/sc-126222/update-the-particle-cli-executable-in-workbench'
- 'staging'
jobs:
#call-tests:
# uses: ./.github/workflows/tests.yml
# secrets: inherit
call-tests:
uses: ./.github/workflows/tests.yml
secrets: inherit
call-build:
uses: ./.github/workflows/build.yml
secrets: inherit
#needs: call-tests
needs: call-tests
call-publish:
uses: ./.github/workflows/publish-v2.yml
secrets: inherit
Expand Down

0 comments on commit 78c609d

Please sign in to comment.