Skip to content

Commit

Permalink
#13 Added NPM caching and vscode output to artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
arminzavada committed Oct 5, 2024
1 parent 0008e9c commit 7d37691
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,30 @@ jobs:
# if: ${{ matrix.os == 'macos-13' }}
- name: Test Docker
run: docker run hello-world
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: adopt
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Checkout code
uses: actions/checkout@v4
- name: Cache npm dependencies
uses: actions/cache@v4
with:
path: subprojects/oxsts-vs-code/node_modules
key: ${{ matrix.os }}-node-${{ hashFiles('subprojects/oxsts-vs-code/package-lock.json') }}
restore-keys: |
${{ matrix.os }}-node-
- name: Gradle build
run: ./gradlew build
- name: Upload Artifacts
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: actions/upload-artifact@v4
with:
path: |
**/build/vscode/
**/build/distributions/
**/build/reports/
**/build/test-results/
Expand Down

0 comments on commit 7d37691

Please sign in to comment.