-
Notifications
You must be signed in to change notification settings - Fork 56
48 lines (40 loc) · 1.06 KB
/
services-test-obs.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
name: "Services Test Obs"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
on:
push:
paths:
- 'services/obs/**'
tags-ignore:
- '**'
branches:
- '**'
pull_request:
paths:
- 'services/obs/**'
jobs:
services_test_obs:
name: "Services Test Obs"
runs-on: self-hosted
strategy:
matrix:
go: [ "1.16", "1.17" ]
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Load secret
uses: 1password/load-secrets-action@v1
env:
STORAGE_OBS_CREDENTIAL: op://Engineering/Obs/testing/credential
STORAGE_OBS_NAME: op://Engineering/Obs/testing/name
STORAGE_OBS_ENDPOINT: op://Engineering/Obs/testing/endpoint
- name: Checkout repository
uses: actions/checkout@v2
- name: Test
env:
STORAGE_OBS_INTEGRATION_TEST: on
working-directory: services/obs
run: make integration_test