Skip to content

Commit

Permalink
feat: Add reusable workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
hiepmai-babylonchain committed Jul 11, 2024
1 parent 20f3050 commit cbd0f19
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 111 deletions.
73 changes: 0 additions & 73 deletions .github/workflows/build_docker.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: ci

on:
pull_request:
branches:
- '**'

jobs:
lint_test:
uses: babylonchain/.github/.github/workflows/reusable_go_lint_test.yml@hiep/add-reusable-workflows
with:
install-dependencies-command: 'sudo apt-get install libzmq3-dev'
run-unit-tests: true
run-integration-tests: true

docker_pipeline:
needs: ["lint_test"]
uses: babylonchain/.github/.github/workflows/reusable_docker_pipeline.yml@hiep/add-reusable-workflows
secrets: inherit
with:
publish: false
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: push_docker

on:
push:
branches:
- 'hiep/add-github-actions'
tags:
- 'hiep/add-github-actions'

jobs:
lint_test:
uses: babylonchain/.github/.github/workflows/reusable_go_lint_test.yml@hiep/add-reusable-workflows
with:
install-dependencies-command: 'sudo apt-get install libzmq3-dev'
run-unit-tests: true
run-integration-tests: true

docker_pipeline:
needs: ["lint_test"]
uses: babylonchain/.github/.github/workflows/reusable_docker_pipeline.yml@hiep/add-reusable-workflows
secrets: inherit
with:
publish: true
38 changes: 0 additions & 38 deletions .github/workflows/push_docker.yml

This file was deleted.

0 comments on commit cbd0f19

Please sign in to comment.