diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a8f2a747..7e26dd13 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,7 +24,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: 22 - cache: 'yarn' + cache: "yarn" - name: "Install dependencies ๐Ÿ“ฆ" run: yarn @@ -39,7 +39,7 @@ jobs: run: yarn run webpack bundle - name: "Upload artifacts ๐Ÿ“ค" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: webpack-bundle path: dist/ diff --git a/.github/workflows/javascript-tests.yml b/.github/workflows/javascript-tests.yml index a2e28491..3f181914 100644 --- a/.github/workflows/javascript-tests.yml +++ b/.github/workflows/javascript-tests.yml @@ -8,12 +8,11 @@ name: JavaScript tests (Jest) on: push: - branches: [ "main" ] + branches: ["main"] pull_request: jobs: build: - runs-on: ubuntu-latest strategy: @@ -22,15 +21,18 @@ jobs: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v4 - - name: Set Yarn to correct version - run: corepack enable - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - cache: 'yarn' - # https://github.com/actions/setup-node?tab=readme-ov-file#caching-global-packages-data - - run: yarn install --immutable - # https://yarnpkg.com/cli/install#options - - run: yarn test + - name: "Checkout repository ๐Ÿ›Ž" + uses: actions/checkout@v4 + - name: "Set Yarn to correct version ๐Ÿ“Œ" + run: corepack enable + - name: Setup Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: "yarn" + # https://github.com/actions/setup-node?tab=readme-ov-file#caching-global-packages-data + - name: "Install dependencies ๐Ÿ“ฆ" + run: yarn install --immutable + # https://yarnpkg.com/cli/install#options + - name: "Run tests ๐Ÿงช" + run: yarn test diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 30140435..4873b741 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -2,7 +2,7 @@ name: pages-build-and-deploy-gh-pages on: push: - branches: [ "main" ] + branches: ["main"] workflow_dispatch: @@ -14,16 +14,16 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout ๐Ÿ›Ž๏ธ - uses: actions/checkout@v3 + - name: "Checkout repositorty ๐Ÿ›Ž๏ธ" + uses: actions/checkout@v4 - - name: Install and Build ๐Ÿ”ง + - name: "Install and Build ๐Ÿ”ง" run: | corepack enable yarn yarn run storybook:build - - name: Deploy ๐Ÿš€ + - name: "Deploy pages ๐Ÿš€" uses: JamesIves/github-pages-deploy-action@v4 with: folder: storybook-static diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 834f6c05..ffcb2441 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,7 +24,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: 22 - registry-url: 'https://registry.npmjs.org' + registry-url: "https://registry.npmjs.org" scope: "@conda-store-ui" - name: "Set Yarn to correct version ๐Ÿ“Œ" @@ -37,7 +37,7 @@ jobs: run: yarn eslint:check - name: "Download webpack bundle ๐Ÿ“ฆ" - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: webpack-bundle path: dist/ diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a7f9d5fc..95834433 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,36 +22,36 @@ jobs: - name: "Checkout repository ๐Ÿ›Ž" uses: actions/checkout@v4 - - name: "Set up Python" - uses: conda-incubator/setup-miniconda@v2 - env: - CONDA_SOLVER: libmamba + - name: "Set up Python ๐Ÿ" + uses: conda-incubator/setup-miniconda@v3 with: + mamba-version: "*" + channels: conda-forge activate-environment: cs-ui-dev-env environment-file: environment_dev.yml auto-activate-base: false - - name: "Set up environment variables" + - name: "Set up environment variables ๐Ÿ”จ" run: | cp .env.example .env - - name: "Set Yarn to correct version" + - name: "Set Yarn to correct version ๐Ÿ“Œ" run: corepack enable - - name: "Install Dependencies" + - name: "Install Dependencies ๐Ÿ“ฆ" run: | sudo apt install wait-for-it -y playwright install chromium yarn install --immutable yarn run build - - name: "Start web server and run tests" + - name: "Start web server and run tests ๐Ÿงช" shell: bash -el {0} run: | yarn run start & pytest --video on --output test-results --screenshots true test/playwright/test_ux.py - - name: "Upload artifacts" - uses: actions/upload-artifact@v3 + - name: "Upload artifacts ๐Ÿ“ค" + uses: actions/upload-artifact@v4 if: ${{ always() }} with: name: playwright-tests