From 608e6f2aed09a46c3c8600ef58756576e56c8d6c Mon Sep 17 00:00:00 2001 From: Manuel Vogel Date: Wed, 11 Nov 2020 11:03:12 +0100 Subject: [PATCH] ci: only run website workflow --- .github/workflows/acc-test.yaml | 110 +++++++++++++++---------------- .github/workflows/compile.yaml | 58 ++++++++-------- .github/workflows/unit-test.yaml | 60 ++++++++--------- .github/workflows/website.yaml | 7 +- 4 files changed, 118 insertions(+), 117 deletions(-) diff --git a/.github/workflows/acc-test.yaml b/.github/workflows/acc-test.yaml index d0a7b79f..718c7355 100644 --- a/.github/workflows/acc-test.yaml +++ b/.github/workflows/acc-test.yaml @@ -1,58 +1,58 @@ ---- -name: Acc Tests -on: - push: - branches: - - master - - "release/**" - pull_request: - types: ['opened', 'synchronize'] - paths: - - '**.go' - - 'vendor/**' - - '.github/workflows/**' +# --- +# name: Acc Tests +# 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 +# env: +# GO_VERSION: "1.15" +# GOPROXY: https://gocenter.io,https://proxy.golang.org,direct -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 - # locally: docker run -it ubuntu:bionic bash (https://ubuntu.pkgs.org/18.04/docker-ce-stable-amd64/) - - run: sudo apt-get update - - run: sudo apt-get -y install apt-transport-https ca-certificates curl gnupg-agent software-properties-common - - run: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - - - run: sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" - - run: sudo apt-get update - # apt-cache policy docker-ce - - run: sudo apt-get -y install docker-ce=5:19.03.5~3-0~ubuntu-bionic - - run: docker version - # Allow local registry to be insecure - - run: sudo sed 's/DOCKER_OPTS="/DOCKER_OPTS="--insecure-registry=127.0.0.1:15000 /g' -i /etc/default/docker - - run: sudo cat /etc/default/docker - - run: sudo service docker restart - # locally: docker run -it ubuntu:bionic bash (https://ubuntu.pkgs.org/18.04/docker-ce-stable-amd64/) - - run: sudo apt-get update - - run: sudo apt-get -y install apt-transport-https ca-certificates curl gnupg-agent software-properties-common - - run: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - - - run: sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" - - run: sudo apt-get update - # apt-cache policy docker-ce - - run: sudo apt-get -y install docker-ce=5:19.03.5~3-0~ubuntu-bionic - - run: docker version - # Allow local registry to be insecure - - run: sudo sed 's/DOCKER_OPTS="/DOCKER_OPTS="--insecure-registry=127.0.0.1:15000 /g' -i /etc/default/docker - - run: sudo cat /etc/default/docker - - run: sudo service docker restart - - run: make testacc +# 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 +# # locally: docker run -it ubuntu:bionic bash (https://ubuntu.pkgs.org/18.04/docker-ce-stable-amd64/) +# - run: sudo apt-get update +# - run: sudo apt-get -y install apt-transport-https ca-certificates curl gnupg-agent software-properties-common +# - run: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - +# - run: sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" +# - run: sudo apt-get update +# # apt-cache policy docker-ce +# - run: sudo apt-get -y install docker-ce=5:19.03.5~3-0~ubuntu-bionic +# - run: docker version +# # Allow local registry to be insecure +# - run: sudo sed 's/DOCKER_OPTS="/DOCKER_OPTS="--insecure-registry=127.0.0.1:15000 /g' -i /etc/default/docker +# - run: sudo cat /etc/default/docker +# - run: sudo service docker restart +# # locally: docker run -it ubuntu:bionic bash (https://ubuntu.pkgs.org/18.04/docker-ce-stable-amd64/) +# - run: sudo apt-get update +# - run: sudo apt-get -y install apt-transport-https ca-certificates curl gnupg-agent software-properties-common +# - run: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - +# - run: sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" +# - run: sudo apt-get update +# # apt-cache policy docker-ce +# - run: sudo apt-get -y install docker-ce=5:19.03.5~3-0~ubuntu-bionic +# - run: docker version +# # Allow local registry to be insecure +# - run: sudo sed 's/DOCKER_OPTS="/DOCKER_OPTS="--insecure-registry=127.0.0.1:15000 /g' -i /etc/default/docker +# - run: sudo cat /etc/default/docker +# - run: sudo service docker restart +# - run: make testacc diff --git a/.github/workflows/compile.yaml b/.github/workflows/compile.yaml index ec418ab8..57214e2c 100644 --- a/.github/workflows/compile.yaml +++ b/.github/workflows/compile.yaml @@ -1,32 +1,32 @@ ---- -name: Compile Binaries -on: - push: - branches: - - master - - "release/**" - pull_request: - types: ['opened', 'synchronize'] - paths: - - '**.go' - - 'vendor/**' - - '.github/workflows/**' +# --- +# name: Compile Binaries +# 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 +# env: +# GO_VERSION: "1.15" +# GOPROXY: https://gocenter.io,https://proxy.golang.org,direct -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 compile +# 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 compile diff --git a/.github/workflows/unit-test.yaml b/.github/workflows/unit-test.yaml index 00fe4393..c669e6f8 100644 --- a/.github/workflows/unit-test.yaml +++ b/.github/workflows/unit-test.yaml @@ -1,34 +1,34 @@ ---- -name: Unit Tests -on: - push: - branches: - - master - - "release/**" - pull_request: - types: ['opened', 'synchronize'] - paths: - - '**.go' - - 'vendor/**' - - '.github/workflows/**' +# --- +# name: Unit Tests +# 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 +# env: +# GO_VERSION: "1.15" +# GOPROXY: https://gocenter.io,https://proxy.golang.org,direct -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 vet - - run: make test +# 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 vet +# - run: make test diff --git a/.github/workflows/website.yaml b/.github/workflows/website.yaml index 16d7de19..4c2d6fc7 100644 --- a/.github/workflows/website.yaml +++ b/.github/workflows/website.yaml @@ -29,9 +29,10 @@ jobs: - run: bash scripts/gogetcookie.sh - run: | cat /etc/issue - whoami - mkdir -p $HOME/go - echo $GOPATH + echo "whoami" && whoami + mkdir -p /go && ls -lash / + export GOPATH="/go" + echo "GOPATH: $GOPATH" make website-test