Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added github checks for build #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build and Test

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

jobs:
build:
runs-on: ubuntu-latest

strategy:
fail-fast: false
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
Loading