GeezerVison is showing github.com — ci: remove use of gpg key · XeroAPI/Xero-Java@2554093
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/build-lint-test.yml +3-21Lines changed: 3 additions & 21 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
4 | 4 | push: |
5 | 5 | branches: |
6 | 6 | - master |
7 | | - pull_request_target: |
| 7 | + pull_request: |
8 | 8 | types: [opened, reopened, synchronize] |
9 | 9 |
|
10 | 10 | jobs: |
@@ -15,30 +15,15 @@ jobs: |
15 | 15 | - name: Checkout Xero-Java repo |
16 | 16 | uses: actions/checkout@v4 |
17 | 17 | with: |
18 | | - ref: ${{ github.event.pull_request.head.ref }} |
19 | 18 | path: Xero-Java |
20 | 19 |
|
21 | | - - name: Checkout start-prism.sh from master |
22 | | - uses: actions/checkout@v4 |
23 | | - with: |
24 | | - ref: master |
25 | | - path: prism-script |
26 | | - sparse-checkout: src/test/java/com/xero/api/util/start-prism.sh |
27 | | - sparse-checkout-cone-mode: false |
28 | | - |
29 | 20 | - name: Set up JDK environment |
30 | 21 | uses: actions/setup-java@v4 |
31 | 22 | with: |
32 | 23 | distribution: 'temurin' |
33 | 24 | java-version: '11' |
34 | 25 | cache: maven |
35 | 26 |
|
36 | | - - name: Import GPG Key |
37 | | - run: | |
38 | | - echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import |
39 | | - env: |
40 | | - GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY}} |
41 | | - |
42 | 27 | - name: Set up Node environment |
43 | 28 | uses: actions/setup-node@v2 |
44 | 29 | with: |
|
49 | 34 |
|
50 | 35 | - name: Start PRISM Server |
51 | 36 | run: ./start-prism.sh feature/prism-changes-mt-v2 & sleep 15 |
52 | | - working-directory: prism-script/src/test/java/com/xero/api/util |
| 37 | + working-directory: Xero-Java/src/test/java/com/xero/api/util |
53 | 38 |
|
54 | 39 | - name: Build and test post generation |
55 | 40 | run: | |
56 | | - export GPG_TTY=$(tty) |
57 | | - mvn clean verify |
58 | | - env: |
59 | | - MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} |
| 41 | + mvn clean verify -Dgpg.skip |
60 | 42 | working-directory: Xero-Java |