Skip to content

Commit 24766cd

Browse files
committed
Add test to workflows steps
1 parent 576c30b commit 24766cd

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/pull_request.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ jobs:
1212
- name: Checkout
1313
uses: actions/checkout@v2
1414

15+
- name: Lint
16+
uses: golangci/golangci-lint-action@v2
17+
with:
18+
version: v1.32.2
19+
args: --timeout=5m
20+
21+
- name: Test
22+
run: make test
23+
1524
- name: Figure out if running fork PR
1625
id: fork
1726
run: '["${{ secrets.DOCKER_REGISTRY_TOKEN }}" == ""] && echo "::set-output name=is_fork_pr::true" || echo "::set-output name=is_fork_pr::false"'
@@ -24,12 +33,6 @@ jobs:
2433
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}
2534
if: steps.fork.outputs.is_fork_pr == 'false'
2635

27-
- name: Lint
28-
uses: golangci/golangci-lint-action@v2
29-
with:
30-
version: v1.32.2
31-
args: --timeout=5m
32-
3336
- name: Build Docker image
3437
run: |
3538
export DOCKER_TAG=pr-${GITHUB_HEAD_REF}

0 commit comments

Comments
 (0)