Skip to content

Commit

Permalink
Update event to pull_request_target
Browse files Browse the repository at this point in the history
  • Loading branch information
jhildenbiddle committed Aug 28, 2021
1 parent 963c388 commit fd4f64f
Showing 1 changed file with 3 additions and 21 deletions.
24 changes: 3 additions & 21 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 'Build & Test'

on: [push, pull_request]
on: [push, pull_request_target]

jobs:
build:
Expand All @@ -22,26 +22,8 @@ jobs:
- name: Build
run: npm run build

test-local:
if: (!secrets.BROWSERSTACK_USERNAME) || (!secrets.BROWSERSTACK_ACCESS_KEY)
name: Test (local)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install
run: npm ci --ignore-scripts

- name: Build
run: npm run build

- name: Run tests locally
run: npm run test

test-remote:
if: secrets.BROWSERSTACK_USERNAME && secrets.BROWSERSTACK_ACCESS_KEY
name: Test (remote)
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down

0 comments on commit fd4f64f

Please sign in to comment.