Skip to content

Merge pull request #6 from fluxcd/tools-chart-interval #37

Merge pull request #6 from fluxcd/tools-chart-interval

Merge pull request #6 from fluxcd/tools-chart-interval #37

Workflow file for this run

name: build
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Restore Go cache
uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.18.x
- name: Setup CUE
uses: cue-lang/setup-cue@main
- name: Test
run: make
- name: Check if working tree is dirty
run: |
if [[ $(git diff --stat) != '' ]]; then
git --no-pager diff
echo 'run make and commit changes'
exit 1
fi