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

Create generic setup #5135

Closed
wants to merge 1 commit into from
Closed
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
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
Loading