Skip to content

Commit

Permalink
Use pull request target on test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinwy committed May 22, 2024
1 parent 415766b commit 7de4fe1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: lint

on:
- push
- pull_request

jobs:
php-cs-fixer:
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: test

on:
push:
branches:
- '*'
- push
- pull_request_target

jobs:
cypress-tests:
Expand All @@ -30,11 +29,14 @@ jobs:
- uses: actions/checkout@v2
- name: Build plugin zip file
run: ./build.bash
- uses: actions/upload-artifact@v3

- name: Upload build artifact
uses: actions/upload-artifact@v3
with:
name: komoju-japanese-payments
path: komoju-japanese-payments.zip
retention-days: 1

e2e-tests:
runs-on: ubuntu-latest
needs: [build]
Expand All @@ -47,7 +49,8 @@ jobs:
repository: 'degica/komoju-e2e-tests'
submodules: recursive
token: ${{ secrets.BUNDLER_SSH_KEY }}
- uses: actions/download-artifact@v3
- name: Download build artifact
uses: actions/download-artifact@v3
with:
name: komoju-japanese-payments
- name: Show files
Expand Down

0 comments on commit 7de4fe1

Please sign in to comment.