From 81de78506d614c83e817ab4fb72da0929330c065 Mon Sep 17 00:00:00 2001 From: Viacheslav Poturaev Date: Sun, 27 Dec 2020 16:43:31 +0100 Subject: [PATCH] Remove github actions until go1.16 is available --- .github/workflows/golangci-lint.yml | 33 --------------------- .github/workflows/test.yml | 46 ----------------------------- 2 files changed, 79 deletions(-) delete mode 100644 .github/workflows/golangci-lint.yml delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml deleted file mode 100644 index 8eb0273..0000000 --- a/.github/workflows/golangci-lint.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: lint -on: - push: - tags: - - v* - branches: - - master - - main - pull_request: -jobs: - golangci: - name: golangci-lint - strategy: - matrix: - go-version: [ 1.16beta1 ] - os: [ ubuntu-latest ] - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v2 - - name: golangci-lint - uses: golangci/golangci-lint-action@v2.3.0 - with: - # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. - version: v1.32.2 - - # Optional: golangci-lint command line arguments. - # args: ./the-only-dir-to-analyze/... - - # Required: the token is used for fetching a list of releases of golangci-lint. - # The secret `GITHUB_TOKEN` is automatically created by GitHub, - # no need to create it manually. - # https://help.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token#about-the-github_token-secret - github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 8c98abe..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: test -on: - push: - tags: - - v* - branches: - - master - - main - pull_request: -env: - GO111MODULE: "on" -jobs: - test: - strategy: - matrix: - go-version: [ 1.16beta1 ] - runs-on: ubuntu-latest - steps: - - name: Install Go - uses: actions/setup-go@v2 - with: - go-version: ${{ matrix.go-version }} - - name: Checkout code - uses: actions/checkout@v2 - - name: Restore vendor - uses: actions/cache@v2 - with: - path: | - vendor - _examples/vendor - key: ${{ runner.os }}-go-vendor-${{ hashFiles('**/go.mod') }} - - name: Populate dependencies - if: matrix.go-version == '1.15.x' # Use latest Go to populate vendor. - run: | - (test -d vendor && echo vendor found) || (go mod vendor) - (test -d _examples/vendor && echo _examples/vendor found) || (cd _examples && go mod vendor) - - name: Test - run: make test-unit - - name: Upload code coverage - if: matrix.go-version == '1.15.x' - uses: codecov/codecov-action@v1 - with: - file: ./unit.coverprofile - flags: unittests - - name: Test Examples - run: make test-examples