test(ethtool): add basic checks to validate image
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 872657a..dcbff92 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -12,3 +12,29 @@
env:
GITHUB_ACTIONS: true
GITHUB_WORKFLOW: "{{ github.workflow.name }}"
+
+ images:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3.0.2
+
+ - name: Set up Go
+ uses: actions/setup-go@v3.3.0
+ with:
+ go-version-file: go.mod
+ cache: true
+
+ - name: Set up gotestfmt
+ uses: haveyoudebuggedit/gotestfmt-action@v2
+ - run: |
+ set -euo pipefail
+ go test -json -v ./... 2>&1 | tee /tmp/gotest.log | gotestfmt
+
+ - name: Upload test log
+ uses: actions/upload-artifact@v2
+ if: always()
+ with:
+ name: test-log
+ path: /tmp/gotest.log
+ if-no-files-found: error