Skip to content

Merge pull request #94 from fluxcd/dependabot/go_modules/flux-deps-49… #243

Merge pull request #94 from fluxcd/dependabot/go_modules/flux-deps-49…

Merge pull request #94 from fluxcd/dependabot/go_modules/flux-deps-49… #243

Workflow file for this run

name: test
on:
pull_request:
push:
branches:
- main
- test*
jobs:
unit:
if: "!contains(github.event.pull_request.labels.*.name, 'skip-ci')"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Setup Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version: 1.20.x
cache-dependency-path: |
**/go.sum
**/go.mod
- name: Run tests
run: make test
- name: Check if working tree is dirty
run: |
if [[ $(git diff --stat) != '' ]]; then
echo 'run make test and commit changes'
exit 1
fi