Skip to content

Commit

Permalink
Added github checks for build
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-in-a-box committed Nov 25, 2024
1 parent ca1df9a commit 408bd61
Show file tree
Hide file tree
Showing 7 changed files with 1,364 additions and 1,330 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build and Test

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]
app: [nextjs, vite]

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: yarn install

- name: Build ${{ matrix.app }} app
run: npx turbo run ${{ matrix.app }} build
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
registry=https://registry.npmjs.org/
1 change: 1 addition & 0 deletions .yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
registry "https://registry.npmjs.org/"
2 changes: 1 addition & 1 deletion apps/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"eslint-plugin-react-refresh": "^0.4.14",
"globals": "^15.11.0",
"vite": "^5.4.10",
"vite-plugin-node-polyfills": "^0.22.0"
"vite-plugin-node-polyfills": "^0.17.0"
}
}
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
"@ariakit/react": "0.4.5",
"@box/blueprint-web": "^7.30.1",
"@box/blueprint-web-assets": "^4.21.0",
"@box/box-ai-content-answers": "^0.57.1",
"@box/box-ai-content-answers": "0.57.1",
"@box/cldr-data": ">=34.2.0",
"@box/metadata-editor": "^0.65.0",
"@box/metadata-editor": "0.65.0",
"@box/react-virtualized": "9.22.3-rc-box.9",
"@hapi/address": "^2.1.4",
"axios": "^0.25.0",
"box-annotations": "^4.1.1-beta.5",
"box-ui-elements": "^22.0.0",
"box-ui-elements": "22.0.0",
"classnames": "^2.5.1",
"color": "^3.1.2",
"draft-js": "^0.11.7",
Expand All @@ -42,6 +42,7 @@
"jsuri": "^1.3.1",
"lodash": "^4.17.5",
"message-accumulator": "^2.1.1",
"moment": "^2.30.1",
"mousetrap": "^1.6.3",
"pikaday": "^1.8.2",
"prettier": "^3.3.3",
Expand Down
5 changes: 4 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@
},
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**"]
"outputs": ["dist/**",".next/**"]
},
"dev": {
"cache": false
},
"install": {
"cache": false
},
"preview": {
"cache": false
}
}
}
Loading

0 comments on commit 408bd61

Please sign in to comment.