Skip to content

Commit

Permalink
Merge pull request #1 from radoslawkrzemien/@radoslawkrzemien/13604-r…
Browse files Browse the repository at this point in the history
…un-workflow-tests-on-pr

Run GHA workflow tests on each PR
  • Loading branch information
radoslawkrzemien authored Nov 7, 2023
2 parents a1a0f38 + 38f51dd commit 674a2a0
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/testGithubActionsWorkflows.yml
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

0 comments on commit 674a2a0

Please sign in to comment.