From c85ea0a489b646311549d6cf44001ad2e1ba5ef4 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Thu, 1 Aug 2024 18:03:18 -0300 Subject: [PATCH 1/2] ci: add build and test workflow Signed-off-by: Carlos Alexandro Becker --- .github/workflows/build.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..0951258 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,18 @@ +name: build + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + env: + GO111MODULE: "on" + steps: + - uses: actions/setup-go@v5 + with: + go-version: stable + check-latest: true + - uses: actions/checkout@v4 + - run: go mod download + - run: go build -v ./... + - run: go test -v -cover -timeout=30s ./... From dde01d814055675c29b680f815b141f14ef3e2f1 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Thu, 1 Aug 2024 18:05:30 -0300 Subject: [PATCH 2/2] ci: conventional commits checks --- .github/workflows/concommits.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/workflows/concommits.yml diff --git a/.github/workflows/concommits.yml b/.github/workflows/concommits.yml new file mode 100644 index 0000000..8eaa162 --- /dev/null +++ b/.github/workflows/concommits.yml @@ -0,0 +1,11 @@ +name: conventional-commits + +on: [push, pull_request] + +jobs: + build: + name: conventional commits + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: webiny/action-conventional-commits@v1.1.0