From 7d376917d0ffcfc50a105cdcdc969bfa1d0f1684 Mon Sep 17 00:00:00 2001 From: Armin Zavada Date: Sat, 5 Oct 2024 12:19:59 +0200 Subject: [PATCH] #13 Added NPM caching and vscode output to artifacts --- .github/workflows/build.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e5877b9..018e8aa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,6 +25,8 @@ 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: @@ -32,8 +34,13 @@ jobs: 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 @@ -41,6 +48,7 @@ jobs: uses: actions/upload-artifact@v4 with: path: | + **/build/vscode/ **/build/distributions/ **/build/reports/ **/build/test-results/