diff --git a/.github/workflows/auto_mockgen.yml b/.github/workflows/auto_mockgen.yml new file mode 100644 index 0000000..c5071b0 --- /dev/null +++ b/.github/workflows/auto_mockgen.yml @@ -0,0 +1,28 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + +jobs: + + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: 1.19 + + - name: Install dependencies + run: | + go install github.com/golang/mock/mockgen@latest + + - name: Generate mocks + run: | + cd app + go generate ./... \ No newline at end of file