Skip to content

Merge pull request #3 from fluxcd/kube-1.28.6 #8

Merge pull request #3 from fluxcd/kube-1.28.6

Merge pull request #3 from fluxcd/kube-1.28.6 #8

Workflow file for this run

# Copyright 2023 The Flux Authors.
# SPDX-License-Identifier: Apache-2.0
name: test
on:
workflow_dispatch:
push:
branches:
- '*'
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.20.x
cache-dependency-path: |
**/go.sum
**/go.mod
-
name: Test
run: |
make tidy
make test
-
name: Check if working tree is dirty
run: |
if [[ $(git diff --stat) != '' ]]; then
git diff
echo 'run make test and commit changes'
exit 1
fi