Skip to content

Commit

Permalink
Create generic setup
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-cox committed Apr 15, 2024
1 parent b649966 commit 9f2ad46
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 20 deletions.
18 changes: 18 additions & 0 deletions .github/actions/setup/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Setup UI Env
description: Setup node, python and call bootstrap script

runs:
using: 'composite'
steps:
- uses: actions/setup-node@v3
with:
node-version: '14.x'

- name: Install Python for node-sass
shell: bash
run: |
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y --no-install-recommends python2
- name: Install packages
shell: bash
run: ./scripts/bootstrap
26 changes: 6 additions & 20 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,10 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/setup-node@v3
with:
node-version: '14.x'

- name: Install Python for node-sass
run: |
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y --no-install-recommends python2
- name: Install packages
run: ./scripts/bootstrap

- name: Run Setup
uses: ./.github/actions/setup

- name: Run tests
run: yarn test
lint:
Expand All @@ -35,16 +28,9 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/setup-node@v3
with:
node-version: '14.x'

- name: Install Python for node-sass
run: |
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y --no-install-recommends python2
- name: Install packages
run: ./scripts/bootstrap

- name: Run Setup
uses: ./.github/actions/setup

- name: Run linter
run: yarn lint:js

0 comments on commit 9f2ad46

Please sign in to comment.