-
Notifications
You must be signed in to change notification settings - Fork 54
45 lines (43 loc) · 1.14 KB
/
test.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
name: Build and Test
on:
push:
tags:
- v*
branches:
- "main"
pull_request:
jobs:
build:
runs-on: ubuntu-latest
env:
GOPRIVATE: "github.com/dymensionxyz/*"
GH_ACCESS_TOKEN: "${{ secrets.GH_ACCESS_TOKEN }}"
steps:
- uses: actions/checkout@v3
- run: git config --global url.https://[email protected]/.insteadOf https://github.com/
- name: Setup Golang with cache
uses: magnetikonline/action-golang-cache@v4
with:
go-version-file: go.mod
- name: Test
run: go test ./...
lint:
runs-on: ubuntu-latest
env:
GOPRIVATE: "github.com/dymensionxyz/*"
GH_ACCESS_TOKEN: "${{ secrets.GH_ACCESS_TOKEN }}"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.22.1
- name: golangci-lint
uses: golangci/[email protected]
with:
args: --timeout=5m0s
version: v1.56.2
- name: markdownlint-cli
uses: nosborn/[email protected]
with:
files: .
config_file: .markdownlint.yaml