Skip to content

Commit dafbd38

Browse files
committed
ci(workflows): Update unit test and lint workflow
Makes the unit test and lint workflow look more like the one in CATs: https://github.com/cloudfoundry/cf-acceptance-tests/blob/9a563429d08eb967a093a78067d8348a20cbeadc/.github/workflows/ci.yml. Also, bumps dependencies, which might hopefully fix this workflow. I've noticed that it's not been running lately.
1 parent 5e9ce2f commit dafbd38

File tree

2 files changed

+32
-37
lines changed

2 files changed

+32
-37
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ 'main' ]
6+
pull_request:
7+
branches: [ 'main' ]
8+
9+
jobs:
10+
unit-test:
11+
name: Unit Test
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-go@v5
16+
with:
17+
go-version-file: 'go.mod'
18+
- name: Run ginkgo tests
19+
run: go run github.com/onsi/ginkgo/v2/ginkgo -r --procs=3 --compilers=3 --randomize-all --randomize-suites --fail-on-pending --keep-going --race --trace
20+
21+
lint:
22+
name: Lint
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v4
26+
- uses: actions/setup-go@v5
27+
with:
28+
go-version-file: 'go.mod'
29+
- name: golangci-lint
30+
uses: golangci/golangci-lint-action@v7
31+
with:
32+
version: v2.0

.github/workflows/go.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)