Skip to content

Commit

Permalink
use Frontend in build step
Browse files Browse the repository at this point in the history
  • Loading branch information
Myestery committed Dec 16, 2024
1 parent 490c0c8 commit 5545c08
Showing 1 changed file with 71 additions and 0 deletions.
71 changes: 71 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,17 @@ jobs:
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: './golem-ui-service/frontend/package-lock.json'
- name: Build Frontend
working-directory: ./golem-ui-service/frontend
run: |
npm ci
npm run build
- run: cargo install cross
if: ${{ matrix.platform.cross }}
Expand Down Expand Up @@ -218,6 +229,18 @@ jobs:
run: git fetch origin --deepen=1
- name: Setup Rust
run: rustup update stable --no-self-update && rustup default stable
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: './golem-ui-service/frontend/package-lock.json'
- name: Build Frontend
working-directory: ./golem-ui-service/frontend
run: |
npm ci
npm run build
- uses: Swatinem/rust-cache@v2
with:
shared-key: debug
Expand Down Expand Up @@ -287,6 +310,18 @@ jobs:
run: git fetch origin --deepen=1
- name: Setup Rust
run: rustup update stable --no-self-update && rustup default stable
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: './golem-ui-service/frontend/package-lock.json'
- name: Build Frontend
working-directory: ./golem-ui-service/frontend
run: |
npm ci
npm run build
- uses: Swatinem/rust-cache@v2
with:
shared-key: debug-workertests
Expand Down Expand Up @@ -336,6 +371,18 @@ jobs:
run: git fetch origin --deepen=1
- name: Setup Rust
run: rustup update stable --no-self-update && rustup default stable
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: './golem-ui-service/frontend/package-lock.json'
- name: Build Frontend
working-directory: ./golem-ui-service/frontend
run: |
npm ci
npm run build
- uses: Swatinem/rust-cache@v2
with:
shared-key: debug-workertests
Expand Down Expand Up @@ -373,6 +420,18 @@ jobs:
run: git fetch origin --deepen=1
- name: Setup Rust
run: rustup update stable --no-self-update && rustup default stable
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: './golem-ui-service/frontend/package-lock.json'
- name: Build Frontend
working-directory: ./golem-ui-service/frontend
run: |
npm ci
npm run build
- uses: cargo-bins/cargo-binstall@main
- name: Install cargo-component
run: cargo binstall --no-confirm [email protected]
Expand Down Expand Up @@ -560,6 +619,18 @@ jobs:
run: git fetch origin --deepen=1
- name: Setup Rust
run: rustup update stable --no-self-update && rustup default stable && rustup target add ${{ matrix.cfg.rust-target }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: './golem-ui-service/frontend/package-lock.json'
- name: Build Frontend
working-directory: ./golem-ui-service/frontend
run: |
npm ci
npm run build
- uses: davidB/rust-cargo-make@v1
- name: Install Protoc
uses: arduino/setup-protoc@v3
Expand Down

0 comments on commit 5545c08

Please sign in to comment.