From 7176d08c497c941fbe233e286e93279fe7d11a12 Mon Sep 17 00:00:00 2001 From: Arne Molland Date: Sat, 23 Jul 2022 11:56:23 +0200 Subject: [PATCH] actions: migrate to node 18 actions/integeration: temp disable test script --- .github/workflows/integration.yaml | 42 ++++++++++++++++++++++-------- .github/workflows/pr.yaml | 2 +- .github/workflows/release.yaml | 2 +- .github/workflows/storybook.yaml | 4 +-- 4 files changed, 35 insertions(+), 15 deletions(-) diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml index b4a3544..5df92f6 100644 --- a/.github/workflows/integration.yaml +++ b/.github/workflows/integration.yaml @@ -4,32 +4,52 @@ on: branches: ["*"] jobs: - build: + lint: runs-on: ubuntu-latest steps: - uses: actions/setup-node@v2 with: - node-version: "16" + node-version: "18" - uses: actions/checkout@v2 - name: Install dependencies run: npm ci - - name: Build library - run: npm run build - test: - needs: build + - name: Check formatting + run: npm run format:ci + + - name: Lint files + run: npm run lint:ci + + build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 with: - node-version: "16" + node-version: "18" + + - uses: actions/checkout@v2 - name: Install dependencies run: npm ci - - name: Run tests - run: npm run test + - name: Build library + run: npm run build + + # TODO: Enable once we have a test script + # test: + # needs: build + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v2 + + # - uses: actions/setup-node@v2 + # with: + # node-version: "18" + + # - name: Install dependencies + # run: npm ci + + # - name: Run tests + # run: npm test diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 7a96fa2..9307a43 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -13,7 +13,7 @@ jobs: - uses: actions/setup-node@v2 with: - node-version: "16" + node-version: "18" - name: Install dependencies run: npm ci diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 589aac5..3d2e272 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/setup-node@v3 with: - node-version: "16" + node-version: "18" registry-url: "https://npm.pkg.github.com" always-auth: "true" diff --git a/.github/workflows/storybook.yaml b/.github/workflows/storybook.yaml index 16e0a56..8a971a4 100644 --- a/.github/workflows/storybook.yaml +++ b/.github/workflows/storybook.yaml @@ -11,7 +11,7 @@ jobs: - uses: actions/setup-node@v2 with: - node-version: "16" + node-version: "18" - name: Install dependencies run: npm ci @@ -35,7 +35,7 @@ jobs: - uses: actions/setup-node@v2 with: - node-version: "16" + node-version: "18" - name: Install dependencies run: npm ci