From b6f619cdcb1f185b8f6b5a27722247a52e0e3911 Mon Sep 17 00:00:00 2001 From: Liz Rice Date: Wed, 23 Dec 2020 10:48:17 +0000 Subject: [PATCH] GitHub Actions in correct directory (#787) * Rename workflow to workflows * Add integration tests to Actions * Upload code coverage after unit test * don't need code coverage when we do a release * Use same Go version as in go.mod * Use same Go version as go.mod --- .github/{workflow => workflows}/build.yml | 4 +++- .github/{workflow => workflows}/publish-ecr.yml | 0 .github/{workflow => workflows}/publish.yml | 0 .github/{workflow => workflows}/release.yml | 8 +++----- 4 files changed, 6 insertions(+), 6 deletions(-) rename .github/{workflow => workflows}/build.yml (89%) rename .github/{workflow => workflows}/publish-ecr.yml (100%) rename .github/{workflow => workflows}/publish.yml (100%) rename .github/{workflow => workflows}/release.yml (77%) diff --git a/.github/workflow/build.yml b/.github/workflows/build.yml similarity index 89% rename from .github/workflow/build.yml rename to .github/workflows/build.yml index f32ff13..cbd93dc 100644 --- a/.github/workflow/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v1 with: - go-version: 1.15 + go-version: 1.13 - name: Checkout code uses: actions/checkout@v2 - name: yaml-lint @@ -31,6 +31,8 @@ jobs: uses: codecov/codecov-action@v1 with: file: ./coverage.txt + - name: Run integration tests + run: make integration-tests - name: Dry-run release snapshot uses: goreleaser/goreleaser-action@v2 with: diff --git a/.github/workflow/publish-ecr.yml b/.github/workflows/publish-ecr.yml similarity index 100% rename from .github/workflow/publish-ecr.yml rename to .github/workflows/publish-ecr.yml diff --git a/.github/workflow/publish.yml b/.github/workflows/publish.yml similarity index 100% rename from .github/workflow/publish.yml rename to .github/workflows/publish.yml diff --git a/.github/workflow/release.yml b/.github/workflows/release.yml similarity index 77% rename from .github/workflow/release.yml rename to .github/workflows/release.yml index e1991f4..33cf5f6 100644 --- a/.github/workflow/release.yml +++ b/.github/workflows/release.yml @@ -11,15 +11,13 @@ jobs: - name: Setup Go uses: actions/setup-go@v1 with: - go-version: 1.15 + go-version: 1.13 - name: Checkout code uses: actions/checkout@v2 - name: Run unit tests run: make tests - - name: Upload code coverage - uses: codecov/codecov-action@v1 - with: - file: ./coverage.txt + - name: Run integration tests + run: make integration-tests - name: Release uses: goreleaser/goreleaser-action@v2 with: