Skip to content

Commit

Permalink
ui fix
Browse files Browse the repository at this point in the history
  • Loading branch information
oplekal committed Dec 2, 2024
1 parent 07b4182 commit a4c4479
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@ jobs:
EPERUSTEET_AMOSAA_SPECFILE: https://raw.githubusercontent.com/Opetushallitus/eperusteet-amosaa/${{ github.ref_name }}/generated/amosaa.spec.json
steps:
- name: Checkout source
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Node 16
uses: actions/setup-node@v3
- name: Set up Node 21
uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '21'

- name: Enable corepack for nodejs
run: corepack enable

- name: Check if UI has same branch
id: ui_branch_status
Expand Down Expand Up @@ -54,7 +57,7 @@ jobs:
yarn run build
- name: Upload eperusteet-amosaa-ui
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: eperusteet-amosaa-ui
path: eperusteet-amosaa-ui/dist/
Expand All @@ -64,23 +67,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download ui
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: eperusteet-amosaa-ui
path: eperusteet-amosaa-service/src/main/resources/static/ui

- name: Set up JDK 11
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'adopt'
cache: 'maven'

- name: Cache Maven repository
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-cache-${{ hashFiles('**/pom.xml') }}
Expand All @@ -107,7 +110,7 @@ jobs:
./cc-test-reporter upload-coverage
- name: Upload eperusteet-amosaa-service-jar
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: eperusteet-amosaa-service-jar
path: eperusteet-amosaa-service/target/eperusteet-amosaa-service.jar
Expand All @@ -117,10 +120,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download service-jar
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: eperusteet-amosaa-service-jar

Expand Down

0 comments on commit a4c4479

Please sign in to comment.