diff --git a/.github/workflows/commit.yml b/.github/workflows/commit.yml new file mode 100644 index 0000000..0806208 --- /dev/null +++ b/.github/workflows/commit.yml @@ -0,0 +1,62 @@ +name: Commit Workflow + +on: + push: + workflow_dispatch: + +jobs: + + commands-ok: + name: Ensure main commands do not fail + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Commands + run: | + set -x + date + pwd + whoami + make deps build + ls -lah bin/launchr + mkdir -p .compose/build/ + touch .compose/build/test + ./bin/launchr package + + go-linters: + name: Run linters + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Commands + run: | + set -x + date + pwd + whoami + make lint + + go-tests: + name: Run Go tests + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Commands + run: | + set -x + date + pwd + whoami + make test + diff --git a/.gitignore b/.gitignore index 30dd966..012c981 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,5 @@ *.gz *.gen.go dist/ -vendor/ \ No newline at end of file +vendor/ +.compose/ diff --git a/Makefile b/Makefile index e466897..89044d6 100644 --- a/Makefile +++ b/Makefile @@ -74,4 +74,4 @@ endif .PHONY: .lint .lint: $(info Running lint...) - $(GOLANGCI_BIN) run --fix ./... + $(GOLANGCI_BIN) run --fix --timeout 3m0s ./...