From 3abf5152ea8bf2d17e84fe39ad658cc137b82b53 Mon Sep 17 00:00:00 2001 From: Manuel Vogel Date: Wed, 11 Nov 2020 09:27:25 +0100 Subject: [PATCH] ci: make website check separate workflow --- .github/workflows/compile.yaml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/unit-test.yaml | 1 - .github/workflows/website.yaml | 34 ++++++++++++++++++++++++++++++++ 4 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/website.yaml diff --git a/.github/workflows/compile.yaml b/.github/workflows/compile.yaml index c2d77e77..ec418ab8 100644 --- a/.github/workflows/compile.yaml +++ b/.github/workflows/compile.yaml @@ -1,5 +1,5 @@ --- -name: Compile Tests +name: Compile Binaries on: push: branches: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e3414995..d12c2ad4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ # You will need to pass the `--batch` flag to `gpg` in your signing step # in `goreleaser` to indicate this is being used in a non-interactive mode. # -name: release +name: Release on: push: tags: diff --git a/.github/workflows/unit-test.yaml b/.github/workflows/unit-test.yaml index 2ec982d2..00fe4393 100644 --- a/.github/workflows/unit-test.yaml +++ b/.github/workflows/unit-test.yaml @@ -30,6 +30,5 @@ jobs: - run: bash scripts/gogetcookie.sh - run: make vet - run: make test - - run: make website-test diff --git a/.github/workflows/website.yaml b/.github/workflows/website.yaml new file mode 100644 index 00000000..484edc7b --- /dev/null +++ b/.github/workflows/website.yaml @@ -0,0 +1,34 @@ +--- +name: Website +on: + push: + branches: + - master + - "release/**" + pull_request: + types: ['opened', 'synchronize'] + paths: + - '**.go' + - 'vendor/**' + - '.github/workflows/**' + +env: + GO_VERSION: "1.15" + GOPROXY: https://gocenter.io,https://proxy.golang.org,direct + GOPATH: "~/go" + +jobs: + test: + runs-on: ubuntu-latest + strategy: + fail-fast: true + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-go@v2 + with: + go-version: '1.15' + - run: cat /etc/issue + - run: bash scripts/gogetcookie.sh + - run: make website-test + +