diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index e69de29..2593a3a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -0,0 +1,36 @@ +name: test + +on: + push: + branches: + - main + paths-ignore: + - "**.md" + pull_request: + branches: + - main + paths-ignore: + - "**.md" + +permissions: read-all + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-go@v4 + with: + go-version: "1.20" + + - name: go mod tidy + run: | + go mod tidy + git diff --exit-code + + - name: test + run: make test + + - name: build + run: make bin