mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-14 02:10:21 +00:00
6f043698d1
When Go modules get updated, golangci-lint sometimes fails with weird errors. One of the common causes seems to be that there is a dependency breakage between modules that are only used within the e2e test suite. A normal build of the cephcsi executable succeeds, but building ./e2e would fail. By adding a job to build the e2e.test executable, a clear error message will be reported when there are package dependency conflicts. Signed-off-by: Niels de Vos <ndevos@ibm.com>
33 lines
701 B
YAML
33 lines
701 B
YAML
---
|
|
name: go-test
|
|
# yamllint disable-line rule:truthy
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- '*'
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
e2e-build-test:
|
|
name: e2e-build-test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: e2e-build-test
|
|
run: make containerized-build TARGET=e2e.test
|
|
go-test:
|
|
name: go-test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: go-test
|
|
run: make containerized-test TARGET=go-test
|
|
go-test-api:
|
|
name: go-test-api
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: go-test-api
|
|
run: make containerized-test TARGET=go-test-api
|