generated from actions/hello-world-docker-action
-
Notifications
You must be signed in to change notification settings - Fork 1
68 lines (61 loc) · 1.8 KB
/
00_push-entry-point.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Push Entry Point
on:
push:
branches:
- main
- test-push-workflow
jobs:
workflows-sanity-checks:
uses: ./.github/workflows/10_workflow-sanity-checks.yml
build-go-projects:
needs: [ workflows-sanity-checks ]
strategy:
matrix:
go-component: [ 'gh-action', 'history-exporter' ]
uses: ./.github/workflows/50_go_build-one-component.yml
secrets: inherit
name: 'Golang: ${{ matrix.go-component }}'
with:
component-name: ${{ matrix.go-component }}
base-sha: ${{ github.event.after }}
head-sha: ${{ github.event.after }}
docker-image-base: neondatabase/${{ matrix.go-component }}
run-build: true
pack-to-docker-image: true
go-build-cache-restore-or-update: 'update'
go-mod-cache-restore-or-update: 'update'
test-go-projects:
strategy:
matrix:
go-component: ${{ fromJson('["gh-action", "history-exporter"]') }}
uses: ./.github/workflows/50_go_build-one-component.yml
secrets: inherit
name: 'Unit Tests: ${{ matrix.go-component }}'
with:
component-name: ${{ matrix.go-component }}
base-sha: ${{ github.event.after }}
head-sha: ${{ github.event.after }}
docker-image-base: neondatabase/${{ matrix.go-component }}
run-tests: true
e2e-tests:
needs: [ build-go-projects ]
runs-on: [ self-hosted, small ]
steps:
- run: |
echo "Running e2e tests"
conclusion:
needs: [ test-go-projects, e2e-tests ]
if: ${{ always() }}
runs-on: [ self-hosted, small ]
steps:
- name: Print final message
run: |
echo Thats it.
final-step:
needs: [ build-go-projects ]
if: ${{ always() }}
runs-on: [ self-hosted, small ]
steps:
- name: Print final message
run: |
echo Thats it.