Skip to content

Commit

Permalink
Fix organization runner group name (#164)
Browse files Browse the repository at this point in the history
build(workflow): fix organization runner group name
  • Loading branch information
parfeon authored Dec 10, 2024
1 parent 9caf1d7 commit 2584d71
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/commands-handler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
name: Process command
if: github.event.issue.pull_request && endsWith(github.repository, '-private') != true
runs-on:
group: Default
group: organization/Default
steps:
- name: Check referred user
id: user-check
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: Check release required
if: github.event.pull_request.merged && endsWith(github.repository, '-private') != true
runs-on:
group: Default
group: organization/Default
outputs:
release: ${{ steps.check.outputs.ready }}
steps:
Expand All @@ -31,12 +31,11 @@ jobs:
needs: check-release
if: needs.check-release.outputs.release == 'true'
runs-on:
group: macos-gh
group: organization/macos-gh
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
# This should be the same as the one specified for on.pull_request.branches
ref: master
- name: Checkout release actions
uses: actions/checkout@v4
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
tests:
name: Integration and Unit tests
runs-on:
group: Default
group: organization/Default
strategy:
fail-fast: true
matrix:
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
acceptance-tests:
name: Acceptance tests
runs-on:
group: Default
group: organization/Default
steps:
- name: Checkout project
uses: actions/checkout@v4
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
name: Tests
needs: [tests, acceptance-tests]
runs-on:
group: Default
group: organization/Default
steps:
- name: Tests summary
run: echo -e "\033[38;2;95;215;0m\033[1mAll tests successfully passed"
4 changes: 2 additions & 2 deletions .github/workflows/run-validations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
pubnub-yml:
name: "Validate .pubnub.yml"
runs-on:
group: Default
group: organization/Default
steps:
- name: Checkout project
uses: actions/checkout@v4
Expand All @@ -36,7 +36,7 @@ jobs:
name: Validations
needs: [pubnub-yml]
runs-on:
group: Default
group: organization/Default
steps:
- name: Validations summary
run: echo -e "\033[38;2;95;215;0m\033[1mAll validations passed"
15 changes: 8 additions & 7 deletions scripts/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,56 +108,57 @@ clean_coverage_output () {
}


echo "Install 'gocovmerge' module"
# Install 'gocovmerge' module.
go install github.com/wadey/gocovmerge@latest > /dev/null 2>&1
#go install github.com/wadey/gocovmerge@latest > /dev/null 2>&1

TESTS_RUN_OUTPUT=""

echo "Run functional tests"
if ! TESTS_RUN_OUTPUT="$(go test $WITH_MOD -v -coverprofile=functional_tests.out -covermode=atomic -coverpkg=./ ./ 2>&1)"; then
parse_test_utput "$TESTS_RUN_OUTPUT"
clean_coverage_output
exit 1
exit 2
fi
[[ -n $TESTS_RUN_OUTPUT ]] && parse_test_utput "$TESTS_RUN_OUTPUT"

echo "Run utils tests"
if ! TESTS_RUN_OUTPUT="$(go test $WITH_MOD -v -race -coverprofile=utils_tests.out -covermode=atomic -coverpkg=./ ./utils/ 2>&1)"; then
parse_test_utput "$TESTS_RUN_OUTPUT"
clean_coverage_output
exit 1
exit 3
fi
[[ -n $TESTS_RUN_OUTPUT ]] && parse_test_utput "$TESTS_RUN_OUTPUT"

echo "Run helpers tests"
if ! TESTS_RUN_OUTPUT="$(go test $WITH_MOD -v -race -coverprofile=helpers_tests.out -covermode=atomic -coverpkg=./ ./tests/helpers/ 2>&1)"; then
parse_test_utput "$TESTS_RUN_OUTPUT"
clean_coverage_output
exit 1
exit 4
fi
[[ -n $TESTS_RUN_OUTPUT ]] && parse_test_utput "$TESTS_RUN_OUTPUT"

echo "Run integration tests"
if ! TESTS_RUN_OUTPUT="$(go test $WITH_MOD -v -race -coverprofile=integration_tests.out -covermode=atomic -coverpkg=./ ./tests/e2e/ 2>&1)"; then
parse_test_utput "$TESTS_RUN_OUTPUT"
clean_coverage_output
exit 1
exit 5
fi
[[ -n $TESTS_RUN_OUTPUT ]] && parse_test_utput "$TESTS_RUN_OUTPUT"

echo "Run deadlock tests #1"
if ! TESTS_RUN_OUTPUT="$(go test $WITH_MOD -v -race -run "TestDestroy\b" -count 20 -coverprofile=deadlock_tests.out 2>&1)"; then
parse_test_utput "$TESTS_RUN_OUTPUT"
clean_coverage_output
exit 1
exit 6
fi
[[ -n $TESTS_RUN_OUTPUT ]] && parse_test_utput "$TESTS_RUN_OUTPUT"

echo "Run deadlock tests #2"
if ! TESTS_RUN_OUTPUT="$(go test $WITH_MOD -v -race -run "TestDestroy2\b" -count 20 -coverprofile=deadlock2_tests.out -covermode=atomic -coverpkg=./ ./tests/e2e/ 2>&1)"; then
parse_test_utput "$TESTS_RUN_OUTPUT"
clean_coverage_output
exit 1
exit 7
fi
[[ -n $TESTS_RUN_OUTPUT ]] && parse_test_utput "$TESTS_RUN_OUTPUT"

Expand Down

0 comments on commit 2584d71

Please sign in to comment.