-
Notifications
You must be signed in to change notification settings - Fork 9
52 lines (44 loc) · 1.28 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
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_SERVER_URL: ${{ secrets.TSS_SERVER_URL }}
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 }}
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@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Build
run: go build -v .
- name: Test
run: go test ./...