Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit tests in the separate wf #209

Merged
merged 1 commit into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/check_main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@ on:
- main

jobs:
check:
name: Run checks
check-unit:
name: Run unit tests
uses: ./.github/workflows/subflow_run_unit_tests.yaml

check-e2e:
name: Run e2e tests
with:
release: true
secrets:
DOCKER_HUB_LOGIN: ${{ secrets.DOCKER_HUB_LOGIN }}
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
uses: ./.github/workflows/subflow_run_e2e.yaml
uses: ./.github/workflows/subflow_run_e2e_tests.yaml

send-notifications:
name: Send notifications
Expand Down
11 changes: 0 additions & 11 deletions .github/workflows/pr_test.yaml

This file was deleted.

11 changes: 11 additions & 0 deletions .github/workflows/pr_test_e2e.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Run e2e tests

on:
pull_request:

jobs:
check:
name: Run e2e tests
with:
release: false
uses: ./.github/workflows/subflow_run_e2e_tests.yaml
9 changes: 9 additions & 0 deletions .github/workflows/pr_test_unit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Run unit tests

on:
pull_request:

jobs:
check:
name: Run unit tests
uses: ./.github/workflows/subflow_run_unit_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ jobs:
run: |
make build

- name: Run unit tests
shell: bash
run: |
make test

- name: Run e2e tests
shell: bash
run: |
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/subflow_run_unit_tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
on:
workflow_call:

jobs:
check:
name: Run checks
runs-on: ubuntu-latest

steps:
- name: checkout sources
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'

- name: Run unit tests
shell: bash
run: |
make test
Loading