This commit is contained in:
David Terpay
2023-08-21 11:15:37 -04:00
committed by GitHub
parent 19c35a47c3
commit c740d4c03a
3 changed files with 30 additions and 57 deletions
+29 -29
View File
@@ -30,38 +30,38 @@ jobs:
**/*.go
go.mod
go.sum
- name: tests
- name: Unit Tests
if: env.GIT_DIFF
run: |
make test
test-e2e:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v3
- uses: technote-space/get-diff-action@v6.1.2
with:
PATTERNS: |
**/**.go
go.mod
go.sum
- uses: actions/setup-go@v4
if: env.GIT_DIFF
with:
go-version: "1.20"
cache: true
# test-integration:
# runs-on: ubuntu-latest
# timeout-minutes: 25
# steps:
# - uses: actions/checkout@v3
# - uses: technote-space/get-diff-action@v6.1.2
# with:
# PATTERNS: |
# **/**.go
# go.mod
# go.sum
# - uses: actions/setup-go@v4
# if: env.GIT_DIFF
# with:
# go-version: "1.20"
# cache: true
# In this step, this action saves a list of existing images, the cache is
# created without them in the post run. It also restores the cache if it
# exists.
- name: cache docker layer
uses: satackey/action-docker-layer-caching@v0.0.11
if: env.GIT_DIFF
# Ignore the failure of a step and avoid terminating the job.
continue-on-error: true
# # In this step, this action saves a list of existing images, the cache is
# # created without them in the post run. It also restores the cache if it
# # exists.
# - name: cache docker layer
# uses: satackey/action-docker-layer-caching@v0.0.11
# if: env.GIT_DIFF
# # Ignore the failure of a step and avoid terminating the job.
# continue-on-error: true
- name: Test E2E
if: env.GIT_DIFF
run: |
make test-integration
# - name: Integration Tests
# if: env.GIT_DIFF
# run: |
# make test-integration