diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index e655dfc..d700666 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -8,17 +8,6 @@ permissions: env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} jobs: - Test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 - with: - go-version: '1.20' - - run: | - go mod tidy - go test - working-directory: core BuildExe: runs-on: windows-latest steps: diff --git a/.github/workflows/clean.yaml b/.github/workflows/clean.yaml new file mode 100644 index 0000000..cc2d8f8 --- /dev/null +++ b/.github/workflows/clean.yaml @@ -0,0 +1,22 @@ +name: clean +on: + push: + branches: + - master + pull_request: + branches: + - master +jobs: + Test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v3 + with: + go-version: '1.20' + - run: | + test -z `gofmt -l .` + - run: | + go mod tidy + go test + working-directory: core diff --git a/README.md b/README.md index 8ee259b..a21b7b6 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ CW4ISR ![image](https://img.shields.io/badge/Go-1.20-red.svg) ![image](https://img.shields.io/badge/license-MIT-darkblue.svg) ![badge](https://github.com/nextzlog/cw4i/actions/workflows/build.yaml/badge.svg) +![badge](https://github.com/nextzlog/cw4i/actions/workflows/clean.yaml/badge.svg) CW4ISR is a highly programmable Morse Decoder that assists automated amateur radio operations.