diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml new file mode 100644 index 0000000..a9cdd0e --- /dev/null +++ b/.forgejo/workflows/ci.yml @@ -0,0 +1,19 @@ +name: CI +on: + push: + branches: + - main +jobs: + lint: + runs-on: docker + container: + image: ghcr.io/catthehacker/ubuntu:runner-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Nix + uses: https://guardianproject.dev/actions/install-nix-action@v31 + + - name: Run CI + run: nix develop --command make ci diff --git a/GNUmakefile b/GNUmakefile index df4f989..65c2aaf 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -32,4 +32,14 @@ e2e: TF_CLI_CONFIG_FILE=.terraformrc terraform destroy -auto-approve && \ echo "✓ E2E test completed successfully" -.PHONY: fmt lint test testacc build install generate e2e +ci: + @echo "1/4 Running linter..." + $(MAKE) lint + @echo "2/4 Building provider..." + $(MAKE) build + @echo "3/4 Running acceptance tests..." + $(MAKE) testacc + @echo "4/4 Running end-to-end tests..." + $(MAKE) e2e + +.PHONY: fmt lint test testacc build install generate e2e ci