Skip to content

feat: farming

feat: farming #95

Workflow file for this run

name: Test
on:
pull_request:
branches:
- develop
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test-testutil:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Check out repository code
uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.22'
check-latest: true
- uses: technote-space/[email protected]
with:
PATTERNS: |
**/**.go
go.mod
go.sum
- run: make test-testutil
if: env.GIT_DIFF
test-unit:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Check out repository code
uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.22'
check-latest: true
- uses: technote-space/[email protected]
with:
PATTERNS: |
**/**.go
go.mod
go.sum
- run: make test-unit
if: env.GIT_DIFF
test-app:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Check out repository code
uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.22'
check-latest: true
- uses: technote-space/[email protected]
with:
PATTERNS: |
**/**.go
go.mod
go.sum
- run: make test-app
if: env.GIT_DIFF
test-integration:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Check out repository code
uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.22'
check-latest: true
- uses: technote-space/[email protected]
with:
PATTERNS: |
**/**.go
go.mod
go.sum
- run: make test-integration
if: env.GIT_DIFF
test-e2e-cmd:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Check out repository code
uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.22'
check-latest: true
- uses: technote-space/[email protected]
with:
PATTERNS: |
**/**.go
**/init.sh
**/docker-compose.yml
go.mod
go.sum
- run: echo "$GITHUB_WORKSPACE/build" >> $GITHUB_PATH
if: env.GIT_DIFF
- run: sudo -E make test-e2e-cmd
if: env.GIT_DIFF