Skip to content

rework main workflow #101

rework main workflow

rework main workflow #101

Workflow file for this run

name: Main workflow
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build-gocert:
uses: ./.github/workflows/main-jobs/build-gocert.yaml

Check failure on line 13 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

invalid value workflow reference: workflows must be defined at the top level of the .github/workflows/ directory
unit-test-gocert:
needs: [build-gocert]
uses: ./.github/workflows/main-jobs/test-gocert.yaml
go-vet:
needs: [build-gocert]
uses: ./.github/workflows/main-jobs/go-vet.yaml
go-lint:
needs: [build-gocert]
uses: ./.github/workflows/main-jobs/go-lint.yaml
rock-build:
needs: [build-gocert, unit-test-gocert, go-vet, go-lint]
uses: ./.github/workflows/build-rock.yaml
rock-scan:
if: github.ref_name == 'main'
needs: [rock-build]
uses: ./.github/workflows/scan-rock.yaml
publish:
if: github.ref_name == 'main'
needs: [rock-build]
uses: ./.github/workflows/publish-rock.yaml