Skip to content

Commit

Permalink
Add validation and testing steps
Browse files Browse the repository at this point in the history
This adds linting, code generation, dependencies validation and unit +
integration tests prior to producing a new release.
  • Loading branch information
weyfonk committed Feb 19, 2024
1 parent c6aa344 commit 6dee15c
Showing 1 changed file with 30 additions and 5 deletions.
35 changes: 30 additions & 5 deletions .github/workflows/release-fleet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,13 @@ jobs:
go-version-file: 'go.mod'
check-latest: true

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v4.0.0
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always
# use the latest patch version.
version: v1.55
args: --timeout=10m --config=.golangci.json

# - name: Run FOSSA scan
# uses: fossas/fossa-action@v1.3.1
Expand All @@ -57,6 +59,29 @@ jobs:
# api-key: ${{ secrets.FOSSA_API_KEY }}
# run-tests: true

- name: Build Fleet binaries
run: ./.github/scripts/build-fleet-binaries.sh

- name: Check for code changes
run: |
./.github/scripts/check-for-auto-generated-changes.sh
go mod verify
- name: Run unit tests
run: go test -cover -tags=test $(go list ./... | grep -v -e /e2e -e /integrationtests)

- name: Run integration tests
env:
SETUP_ENVTEST_VER: v0.0.0-20240115093953-9e6e3b144a69
ENVTEST_K8S_VERSION: 1.28
run: ./.github/scripts/run-integration-tests.sh

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log into Container registry
uses: docker/login-action@v3
with:
Expand Down

0 comments on commit 6dee15c

Please sign in to comment.