Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add integration-test for obs #946

Closed
wants to merge 11 commits into from
40 changes: 40 additions & 0 deletions .github/workflows/services-test-obs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: "Services Test Obs"

on:
push:
paths:
- 'services/Obs/**'
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