-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from radoslawkrzemien/@radoslawkrzemien/13604-r…
…un-workflow-tests-on-pr Run GHA workflow tests on each PR
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Test GitHub Actions workflows | ||
|
||
on: | ||
workflow_dispatch: | ||
workflow_call: | ||
pull_request: | ||
types: [opened, reopened, edited, synchronize] | ||
branches-ignore: [staging, production] | ||
paths: ['.github'] | ||
|
||
jobs: | ||
testGHWorkflows: | ||
if: ${{ github.actor != 'OSBotify' && github.actor != 'imgbot[bot]' || github.event_name == 'workflow_call' }} | ||
runs-on: ubuntu-latest | ||
env: | ||
CI: true | ||
strategy: | ||
fail-fast: false | ||
name: test GitHub Workflows | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node | ||
uses: Expensify/App/.github/actions/composite/setupNode@main | ||
|
||
- name: Run tests | ||
run: npm run workflow-test |