diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index fcd099b..e3e2e30 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -2,6 +2,7 @@ name: lint on: - push + - pull_request jobs: php-cs-fixer: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0f28466..bfd146a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,9 +1,8 @@ name: test on: - push: - branches: - - '*' + - push + - pull_request_target jobs: cypress-tests: @@ -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] @@ -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