From e66aeaea72580f75fc3fbd16152b956e21063285 Mon Sep 17 00:00:00 2001 From: Dennis Werner Date: Thu, 27 Jun 2024 21:34:24 +0200 Subject: [PATCH] change workflow --- .github/workflows/build.yml | 5 +++++ .github/workflows/lint.yml | 4 ++++ .github/workflows/test.yml | 7 ++++--- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 17be54b..781fa77 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,6 +6,11 @@ on: # * is a special character in YAML so you have to quote this string - cron: "30 17 * * SUN" + workflow_run: + workflows: ["Test"] + types: + - completed + jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4f8b08b..ba70c68 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -17,6 +17,10 @@ jobs: - uses: actions/setup-go@v5 with: go-version: stable + - name: Install templ + run: go install github.com/a-h/templ/cmd/templ@latest + - name: Build templ + run: templ generate . - name: golang-lint uses: golangci/golangci-lint-action@v6 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 710f46f..7bede83 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,9 +4,10 @@ name: Test on: - push: - pull_request: - branches: ["main"] + workflow_run: + workflows: ["Lint"] + types: + - completed jobs: test: