Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT - Update actions #420

Merged
merged 1 commit into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
uses: actions/checkout@v4

- name: "Set up Node.js 🧶"
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'yarn'
cache: "yarn"

- name: "Install dependencies 📦"
run: yarn
Expand All @@ -36,7 +36,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/
28 changes: 15 additions & 13 deletions .github/workflows/javascript-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,29 @@ name: JavaScript tests (Jest)

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x]
node-version: [18.x, 20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v4
- 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: 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
16 changes: 8 additions & 8 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@ name: pages-build-and-deploy-gh-pages

on:
push:
branches: [ "main" ]
branches: ["main"]

workflow_dispatch:

permissions:
contents: write

jobs:
build-and-deploy:
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: |
yarn
yarn run storybook:build
- name: Deploy 🚀

- name: "Deploy pages 🚀"
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: storybook-static
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:

# Setup .npmrc file to publish to npm
- name: "Set up Node.js 🧶"
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
registry-url: "https://registry.npmjs.org"
scope: "@conda-store-ui"

- name: "Install dependencies 📦"
Expand All @@ -34,7 +34,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/
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,33 +22,33 @@ 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: "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
Expand Down
Loading