forked from podtato-head/podtato-head
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (46 loc) · 1.05 KB
/
podtato-head-tests.yaml
File metadata and controls
53 lines (46 loc) · 1.05 KB
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
name: podtato-head-go-tests
on:
push:
paths:
- 'podtato-head-microservices/**'
pull_request:
paths:
- 'podtato-head-microservices/**'
workflow_call:
permissions:
packages: write
env:
CONTAINER_REGISTRY: ghcr.io
GITHUB_TOKEN: ${{ github.token }}
GITHUB_USER: ${{ github.repository_owner }}
IMAGE_VERSION: test
defaults:
run:
shell: bash
jobs:
verify_go_code:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 'stable'
- name: Verify Go code
run: make podtato-head-verify
build_images:
needs: verify_go_code
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build and push images
run: make push-microservices-images
test_microservices:
needs: build_images
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Test services
run: make test-microservices