Skip to content

Commit

Permalink
Introduce pnpm and workspaces
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksandr Dubenko <[email protected]>
  • Loading branch information
sniok committed Dec 4, 2024
1 parent 82eb285 commit 1e8d5ea
Show file tree
Hide file tree
Showing 648 changed files with 89,046 additions and 417,691 deletions.
112 changes: 64 additions & 48 deletions .github/workflows/app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@ name: Build App
on:
pull_request:
paths:
- 'frontend/**'
- 'Makefile'
- '.github/**'
- 'app/**'
- 'backend/**'
- "frontend/**"
- "Makefile"
- ".github/**"
- "app/**"
- "backend/**"
push:
branches:
- main
- rc-*
- testing-rc-*
paths:
- 'frontend/**'
- Makefile
- '.github/**'
- 'app/**'
- 'backend/**'
- "frontend/**"
- Makefile
- ".github/**"
- "app/**"
- "backend/**"

permissions:
contents: read
Expand All @@ -30,53 +30,69 @@ jobs:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ matrix.node-version }}
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
go-version: '1.22.*'
- name: App linux
run: |
make app-linux
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
go-version: "1.22.*"
- name: App linux
run: |
pnpm i
pnpm app:build
pnpm app:package-linux
build-windows:
runs-on: windows-2019
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ matrix.node-version }}
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
go-version: '1.22.*'
- name: Dependencies
uses: crazy-max/ghaction-chocolatey@e80bd39bb49cae70b67ea53d52d00833a7255c21 # v1.7.0
with:
args: install make
- name: App Windows
run: make app-win
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
go-version: "1.22.*"
- name: App Windows
run: |
pnpm i
pnpm app:build
pnpm app:package-win
build-mac:
runs-on: macos-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ matrix.node-version }}
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
go-version: '1.22.*'
- name: Dependencies
run: brew install make
- name: App Mac
run: |
make app-mac
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
go-version: "1.22.*"
- name: App Mac
run: |
pnpm i
pnpm app:build
pnpm app:package-mac
Loading

0 comments on commit 1e8d5ea

Please sign in to comment.