forked from prebid/prebid-server
-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (38 loc) · 1019 Bytes
/
validate.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
name: Validate
on:
push:
branches:
- master
- main
- ci
pull_request:
branches:
- master
- main
- ci
jobs:
validate:
strategy:
matrix:
go-version: [1.21.x, 1.22.x]
os: [ubuntu-20.04]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout Code
uses: actions/checkout@v4
with:
# Resolves to empty string for push events and falls back to HEAD.
ref: ${{ github.event.pull_request.head.sha }}
- name: Validate
run: |
git config --global url."https://${USERNAME}:${TOKEN}@git.pubmatic.com".insteadOf "https://git.pubmatic.com"
./validate.sh --nofmt --cov --race 10
env:
GO111MODULE: "on"
GOPRIVATE: "git.pubmatic.com/PubMatic/*"
TOKEN: ${{ secrets.PM_OPENWRAP_CICD_PASSWORD }}
USERNAME: ${{ secrets.PM_OPENWRAP_CICD_USERNAME }}