-
Notifications
You must be signed in to change notification settings - Fork 37
46 lines (43 loc) · 1.36 KB
/
pull-request.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
name: GCP Microservice Build
on:
pull_request:
push:
branches-ignore:
- master
env:
BALLERINA_VERSION: 2201.8.4 # Update this with the latest Ballerina version
jobs:
build:
if: github.repository_owner == 'ballerina-guides'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
test: [adservice, cartservice, checkoutservice, currencyservice, emailservice, frontend, paymentservice, productcatalogservice, recommendationservice, shippingservice]
env:
TEST_NAME: "${{ matrix.test }}"
steps:
- uses: actions/checkout@v2
- name: Write Test Name to outputs
id: testname
run: |
echo "::set-output name=test-name::${TEST_NAME}"
- uses: ballerina-platform/setup-ballerina@v1
name: Install Ballerina
with:
version: ${{ env.BALLERINA_VERSION }}
- name: Pack gRPC Stub Module
working-directory: "client_stubs"
run: bal pack
- name: Push gRPC Stub Module
working-directory: "client_stubs"
run: bal push --repository=local
- name: Pack Money Utils Module
working-directory: "money"
run: bal pack
- name: Push Money Utils Module
working-directory: "money"
run: bal push --repository=local
- name: Ballerina Build
working-directory: ${{ steps.testname.outputs.test-name }}
run: bal build --cloud=k8s