-
Notifications
You must be signed in to change notification settings - Fork 66
46 lines (38 loc) · 1.01 KB
/
rate-limiting.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
name: rate-limiting
on:
pull_request:
paths:
- "modules/rate-limiting/**"
- ".github/workflows/rate-limiting.yml"
env:
LINT_VERSION: v1.57.1
GO_VERSION: 1.22.1
WORKING_DIRECTORY: modules/rate-limiting
DOCKER_TAG: rate-limiting:local
TAR_PATH: /tmp/rate-limiting-image.tar
IMAGE_NAME: rate-limiting-image
jobs:
golangci:
name: Linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: ${{ env.LINT_VERSION }}
working-directory: ${{ env.WORKING_DIRECTORY }}
args: --timeout=5m
test:
runs-on: ubuntu-latest
name: test
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- uses: actions/checkout@v4
- name: Test
run: go test ./...
working-directory: ${{ env.WORKING_DIRECTORY }}
# TODO: build docker & run e2e tests (ref: pfm matrix)