Skip to content

chore(ci): add access check to tests #650

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

Merged
merged 1 commit into from
Feb 25, 2025
Merged
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
13 changes: 13 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,17 @@ on:
workflow_dispatch:

jobs:
access-check:
runs-on: ubuntu-latest
steps:
- uses: actions-cool/check-user-permission@v2
with:
require: write
username: ${{ github.triggering_actor }}
error-if-missing: true

unit-tests:
needs: access-check
runs-on: ubuntu-latest-8
environment: testing
steps:
Expand All @@ -34,6 +44,7 @@ jobs:
codecov_flags: unit-tests

codemod-tests:
needs: access-check
# TODO: re-enable when this check is a develop required check
if: false
runs-on: ubuntu-latest-32
Expand Down Expand Up @@ -76,6 +87,7 @@ jobs:
GITHUB_WORKSPACE: $GITHUB_WORKSPACE

parse-tests:
needs: access-check
if: contains(github.event.pull_request.labels.*.name, 'parse-tests') || github.event_name == 'push' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest-32
environment: testing
Expand Down Expand Up @@ -147,6 +159,7 @@ jobs:
}

integration-tests:
needs: access-check
runs-on: ubuntu-latest-16
environment: testing
steps:
Expand Down