Skip to content

Commit

Permalink
MAINT - Update actions (#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
trallard authored Sep 9, 2024
1 parent 7ffeffb commit ecf425f
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 36 deletions.
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

0 comments on commit ecf425f

Please sign in to comment.