-
-
Notifications
You must be signed in to change notification settings - Fork 4
33 lines (30 loc) · 1.08 KB
/
integration.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
name: K8s integration
on:
workflow_dispatch:
jobs:
# This job checks if an identical workflow is being triggered by different
# event and skips it. For instance there is no need to run the same pipeline
# twice for pull_request and push for identical commit sha.
pre_job:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/[email protected]
with:
skip_after_successful_duplicate: 'true'
concurrent_skipping: same_content
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'
test:
needs: pre_job
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Run vagrant up
run: vagrant up
- name: Bootstrap minukube cluster and Redis operator
run: vagrant ssh -c "cd /syncd && make dev-env"
- name: Test exposed example application
run: vagrant ssh -c 'curl "http://example.$(minikube ip).nip.io/api/ready"'