parent
6b623eb3a3
commit
d39efbd1e2
2 changed files with 30 additions and 1 deletions
19
.forgejo/workflows/ci.yml
Normal file
19
.forgejo/workflows/ci.yml
Normal file
|
@ -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
|
12
GNUmakefile
12
GNUmakefile
|
@ -32,4 +32,14 @@ e2e:
|
||||||
TF_CLI_CONFIG_FILE=.terraformrc terraform destroy -auto-approve && \
|
TF_CLI_CONFIG_FILE=.terraformrc terraform destroy -auto-approve && \
|
||||||
echo "✓ E2E test completed successfully"
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue