Skip to content

Commit

Permalink
fix(ci): release package only after e2e tests conclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo-Henrique committed Jul 23, 2024
1 parent f090569 commit 26ce5ee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/e2e-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
name: E2E tests

on: [push, pull_request]
on:
workflow_run:
workflows: ["Code check"]
types: [completed]

jobs:
e2e-tests:
runs-on: ubuntu-latest

if: ${{ github.event.workflow_run.conclusion == 'success' }}

strategy:
matrix:
project: [., ./templates/fastify]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release

on:
workflow_run:
workflows: ["Code check", "E2E tests"]
workflows: ["E2E tests"]
types: [completed]
branches:
- "main"
Expand Down

0 comments on commit 26ce5ee

Please sign in to comment.