-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
40 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,8 +19,8 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
jobs: | ||
lint: | ||
name: Lint and check format | ||
setup: | ||
name: Setup node and install dependencies | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out files from GitHub | ||
|
@@ -34,6 +34,28 @@ jobs: | |
run: yarn install --immutable | ||
- name: Check for duplicate dependencies | ||
run: yarn dedupe --check | ||
- name: Upload node_modules as artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: node_modules | ||
path: node_modules | ||
lint: | ||
name: Lint and check format | ||
needs: [setup] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out files from GitHub | ||
uses: actions/[email protected] | ||
- name: Setup Node | ||
uses: actions/[email protected] | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: yarn | ||
- name: Download node_modules artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: node_modules | ||
path: node_modules | ||
- name: Build resources | ||
run: ./node_modules/.bin/gulp gen-icons-json build-translations build-locale-data gather-gallery-pages | ||
- name: Setup lint cache | ||
|
@@ -55,6 +77,7 @@ jobs: | |
run: yarn run lint:prettier | ||
test: | ||
name: Run tests | ||
needs: [setup] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out files from GitHub | ||
|
@@ -64,8 +87,11 @@ jobs: | |
with: | ||
node-version-file: ".nvmrc" | ||
cache: yarn | ||
- name: Install dependencies | ||
run: yarn install --immutable | ||
- name: Download node_modules artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: node_modules | ||
path: node_modules | ||
- name: Build resources | ||
run: ./node_modules/.bin/gulp gen-icons-json build-translations build-locale-data | ||
- name: Run Tests | ||
|
@@ -82,8 +108,11 @@ jobs: | |
with: | ||
node-version-file: ".nvmrc" | ||
cache: yarn | ||
- name: Install dependencies | ||
run: yarn install --immutable | ||
- name: Download node_modules artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: node_modules | ||
path: node_modules | ||
- name: Build Application | ||
run: ./node_modules/.bin/gulp build-app | ||
env: | ||
|
@@ -106,8 +135,11 @@ jobs: | |
with: | ||
node-version-file: ".nvmrc" | ||
cache: yarn | ||
- name: Install dependencies | ||
run: yarn install --immutable | ||
- name: Download node_modules artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: node_modules | ||
path: node_modules | ||
- name: Build Application | ||
run: ./node_modules/.bin/gulp build-hassio | ||
env: | ||
|