Skip to content

Commit fbe63de

Browse files
authored
feat: run tests (#31)
* feat: run tests * feat: remove comments * feat: build when a pull request is opened * feat: build job only when tests are successful
1 parent 0c490e5 commit fbe63de

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/build-release.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,23 @@ jobs:
3535
build-release:
3636
name: Build and release
3737
runs-on: ubuntu-latest
38-
needs: [check-token-expiration, test]
38+
needs: [check-token-expiration]
3939
permissions:
4040
contents: read
4141
packages: write
42+
if: |
43+
${{
44+
always() &&
45+
(
46+
github.event_name == 'release' ||
47+
github.event_name == 'workflow_dispatch' ||
48+
github.event_name == 'push' ||
49+
github.event_name == 'pull_request'
50+
) &&
51+
(
52+
!needs.test.result || needs.test.result == 'success'
53+
)
54+
}}
4255
outputs:
4356
project_version: ${{ steps.set-version.outputs.project_version }}
4457
intention_id: ${{ steps.set-intention-id.outputs.intention_id }}

0 commit comments

Comments
 (0)