-
Notifications
You must be signed in to change notification settings - Fork 12
49 lines (38 loc) · 1.21 KB
/
run-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
name: Run tests
on:
push:
branches: ["main"]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
env:
GKE_CLUSTER: protocol-us-central1
GKE_ZONE: us-central1
jobs:
go-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: "0" # Per https://github.com/ignite/cli/issues/1674#issuecomment-1144619147
- name: install ignite
run: make ignite_install
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.22.2"
- name: Install CI dependencies
run: make install_ci_deps
# This is commented out because proto generated code is now tracked in the
# repo so this step is skipped.
# TODO_IMPROVE(@okdas): Have a step that regenerates the proto files and ensures
# if they are up to date. See https://github.com/pokt-network/poktroll/pull/544#issuecomment-2123063491
# - name: Generate protobufs
# run: make proto_regen
- name: Generate mocks
run: make go_mockgen
- name: Run golangci-lint
run: make go_lint
- name: Test
run: make test_all