diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 703442f..d949faf 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -13,10 +13,6 @@ updates: dependency-type: "development" update-types: - "minor" - dev-major-updates: - dependency-type: "development" - update-types: - - "major" prod-patch-updates: dependency-type: "production" update-types: @@ -25,10 +21,6 @@ updates: dependency-type: "production" update-types: - "minor" - prod-major-updates: - dependency-type: "production" - update-types: - - "major" - package-ecosystem: "docker" directory: "/" @@ -41,6 +33,3 @@ updates: minor-updates: update-types: - "minor" - major-updates: - update-types: - - "major" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..6c8ec18 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +name: Run Tests + +on: + pull_request: + branches: + - main + - dev + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.23' + + - name: Build go + run: go build + + - name: Build Docker image + run: make build + + - name: Build binaries + run: make go-build-release diff --git a/Makefile b/Makefile index ab2db3d..54078c4 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ all: build push docker-build-release: @if [ -z "$(tag)" ]; then \ - echo "Error: tag is required. Usage: make build-all tag="; \ + echo "Error: tag is required. Usage: make docker-build-release tag="; \ exit 1; \ fi docker buildx build --platform linux/arm/v7,linux/arm64,linux/amd64 -t fosrl/newt:latest -f Dockerfile --push .