diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000..dd8a4521 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,20 @@ +name: Lint + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: '>=1.20' + # Setup environment + - run: make install + # Do the linting + - run: make lint diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..29d5f1ac --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,17 @@ +name: Tests + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: '>=1.20' + - run: make test diff --git a/Makefile b/Makefile index 326ae7cb..e213aae6 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ all: clean lint test build .PHONY: lint lint: @echo ">>> Performing golang code linting.." - golangci-lint run --config=.golangci-lint.yml + golangci-lint run .PHONY: test test: