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 11f1ac8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 20 deletions.
19 changes: 19 additions & 0 deletions .github/setup/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Setup UI Env

runs:
using: 'composite'
steps:
- 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
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.yaml

- 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.yaml

- name: Run linter
run: yarn lint:js

0 comments on commit 11f1ac8

Please sign in to comment.