-
Notifications
You must be signed in to change notification settings - Fork 10
55 lines (47 loc) · 1.44 KB
/
tests.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
49
50
51
52
53
54
55
name: Tests
on:
workflow_dispatch:
push:
# Publish the `master` branch.
branches:
- main
# Publish `v1.2.3` tags as releases.
tags:
- v*
pull_request:
branches:
- main
env:
TSS_TENANT: ${{ secrets.TSS_TENANT }}
TSS_USERNAME: ${{ secrets.TSS_USERNAME }}
TSS_PASSWORD: ${{ secrets.TSS_PASSWORD }}
TSS_SECRET_ID: ${{ secrets.TSS_SECRET_ID }}
TSS_TEMPLATE_ID: ${{ secrets.TSS_TEMPLATE_ID }}
TSS_FOLDER_ID: ${{ secrets.TSS_FOLDER_ID }}
TSS_SITE_ID: ${{ secrets.TSS_SITE_ID }}
TSS_SSH_KEY_TEMPLATE_ID: ${{ secrets.TSS_SSH_KEY_TEMPLATE_ID }}
TSS_TEST_PASSWORD: ${{ secrets.TSS_TEST_PASSWORD }}
TSS_SEARCH_FIELD: ${{ secrets.TSS_SEARCH_FIELD }}
TSS_SEARCH_TEXT: ${{ secrets.TSS_SEARCH_TEXT }}
TSS_PLATFORM_USERNAME: ${{ secrets.TSS_PLATFORM_USERNAME }}
TSS_PLATFORM_PASSWORD: ${{ secrets.TSS_PLATFORM_PASSWORD }}
TSS_PLATFORM_URL: ${{ secrets.TSS_PLATFORM_URL }}
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3
with:
go-version: 1.13
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Build
run: go build -v .
- name: Test
run: go test ./...