From 09d1a535a52be7dfa39bbf1cbb638ca4a7b508f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amandus=20S=C3=B8ve=20Thorsrud?= Date: Thu, 12 Feb 2026 15:15:27 +0100 Subject: [PATCH] feat: use Mise for installing tools in CI --- .github/workflows/ci.yml | 7 ++----- .github/workflows/typescript-generate.yml | 17 ++++------------- .github/workflows/typescript-publish.yml | 11 +++-------- mise.toml | 3 +++ 4 files changed, 12 insertions(+), 26 deletions(-) create mode 100644 mise.toml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1a9648f2b..3a1cb8cfe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,11 +13,8 @@ jobs: name: "Unit tests" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 - with: - distribution: temurin - java-version: ${{ vars.JAVA_VERSION }} + - uses: actions/checkout@v6 + - uses: jdx/mise-action@v3 - name: Cache Maven packages uses: actions/cache@v4 with: diff --git a/.github/workflows/typescript-generate.yml b/.github/workflows/typescript-generate.yml index 538a4a086..61c3fda41 100644 --- a/.github/workflows/typescript-generate.yml +++ b/.github/workflows/typescript-generate.yml @@ -21,27 +21,17 @@ jobs: name: Generate typescript types runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: token: ${{ secrets.CI_GITHUB_TOKEN }} - - uses: coursier/cache-action@v6 - - uses: actions/setup-java@v4 - with: - distribution: temurin - java-version: ${{ vars.JAVA_VERSION }} + - uses: coursier/cache-action@v8 + - uses: jdx/mise-action@v3 - name: Cache Maven packages uses: actions/cache@v4 with: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 - - uses: actions/setup-node@v4 - with: - node-version: "22.15.0" - - name: Enable yarn v4 - run: | - corepack enable - yarn set version 4.10.3 - name: Login to ECR repo run: RES=$(aws sts assume-role --role-arn $CI_RELEASE_ROLE --role-session-name @@ -55,6 +45,7 @@ jobs: --password-stdin - name: Generate typescript types run: | + corepack enable mvn -P integration verify -Dtest=VersionServiceIntegrationTest cd typescript/ yarn diff --git a/.github/workflows/typescript-publish.yml b/.github/workflows/typescript-publish.yml index 5e470bacd..b7085c7ce 100644 --- a/.github/workflows/typescript-publish.yml +++ b/.github/workflows/typescript-publish.yml @@ -19,22 +19,17 @@ jobs: name: Publish typescript types runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: token: ${{ secrets.CI_GITHUB_TOKEN }} - - uses: actions/setup-node@v4 - with: - node-version: "22.15.0" - - name: Enable yarn v4 - run: | - corepack enable - yarn set version 4.10.3 + - uses: jdx/mise-action@v3 - name: Setup git run: | git config user.email "$KNOWIT_EMAIL" git config user.name "github-actions" - name: Publish typescript types run: | + corepack enable cd typescript/ yarn yarn build diff --git a/mise.toml b/mise.toml new file mode 100644 index 000000000..f33829fdb --- /dev/null +++ b/mise.toml @@ -0,0 +1,3 @@ +[tools] +java = "temurin-25" +node = "22"