|
13 | 13 |
|
14 | 14 | jobs:
|
15 | 15 | build:
|
16 |
| - |
17 | 16 | runs-on: ubuntu-latest
|
18 | 17 | permissions:
|
19 | 18 | contents: read
|
20 | 19 | packages: write
|
21 | 20 |
|
22 | 21 | steps:
|
23 |
| - - uses: actions/checkout@v3 |
24 |
| - - name: Set up JDK 11 |
25 |
| - uses: actions/setup-java@v3 |
26 |
| - with: |
27 |
| - java-version: '11' |
28 |
| - distribution: 'temurin' |
29 |
| - server-id: github # Value of the distributionManagement/repository/id field of the pom.xml |
30 |
| - settings-path: ${{ github.workspace }} # location for the settings.xml file |
| 22 | + - uses: actions/checkout@v3 |
| 23 | + - uses: actions/setup-node@v3 |
| 24 | + - name: Install Prism |
| 25 | + run: (yarn global add @stoplight/prism-cli) |
| 26 | + - name: Start Prism Server |
| 27 | + run: (prism mock -h 127.0.0.1 openapi.json &) |
| 28 | + - name: Set up JDK 11 |
| 29 | + uses: actions/setup-java@v3 |
| 30 | + with: |
| 31 | + java-version: "11" |
| 32 | + distribution: "temurin" |
| 33 | + server-id: github # Value of the distributionManagement/repository/id field of the pom.xml |
| 34 | + settings-path: ${{ github.workspace }} # location for the settings.xml file |
31 | 35 |
|
32 |
| - - name: Build with Gradle |
33 |
| - uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 |
34 |
| - with: |
35 |
| - arguments: build |
| 36 | + - name: Build with Gradle |
| 37 | + uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 |
| 38 | + with: |
| 39 | + arguments: build |
36 | 40 |
|
37 |
| - # The USERNAME and TOKEN need to correspond to the credentials environment variables used in |
38 |
| - # the publishing section of your build.gradle |
39 |
| - - name: Publish to GitHub Packages |
40 |
| - uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 |
41 |
| - with: |
42 |
| - arguments: publish |
43 |
| - env: |
44 |
| - USERNAME: ${{ github.actor }} |
45 |
| - TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 41 | + # The USERNAME and TOKEN need to correspond to the credentials environment variables used in |
| 42 | + # the publishing section of your build.gradle |
| 43 | + - name: Publish to GitHub Packages |
| 44 | + uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 |
| 45 | + with: |
| 46 | + arguments: publish |
| 47 | + env: |
| 48 | + USERNAME: ${{ github.actor }} |
| 49 | + TOKEN: ${{ secrets.GITHUB_TOKEN }} |
0 commit comments