Skip to content

Commit

Permalink
testing bun CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-genesis committed May 3, 2024
1 parent 5cc6172 commit c5c7007
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 24 deletions.
24 changes: 8 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
pull_request:
branches:
- master
- hardcode-versions

jobs:
build:
Expand All @@ -13,32 +14,23 @@ jobs:

strategy:
matrix:
node-version: [20.x]
node-version: [20.12.2]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Install CDK dependencies
working-directory: ./infra
run: npm install

- name: Run CDK tests
working-directory: ./infra
run: npm test
- uses: oven-sh/setup-bun@v1
with:
bun-version: 1.1.6

- name: Install Docusaurus dependencies
run: npm install
run: bun install --no-save # do not generate a lockfile

- name: Build Docusaurus and check for broken links
run: |
export NODE_OPTIONS="--max-old-space-size=8192"
npm run build
run: bun run build
env:
BRANCH: ${{ github.base_ref }}
BASE_URL: /docs/
15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"node": ">=20.10.0"
},
"scripts": {
"prebuild": "npm audit --parseable | grep 'critical' && echo 'Critical vulnerabilities found. Please fix them before building. To do that run npm audit.' && exit 1 || true",
"docusaurus": "docusaurus",
"build": "npm run copy:dsc && docusaurus build",
"build-main": "docusaurus build",
Expand All @@ -28,11 +27,11 @@
"package:iife": "node -e \"require('fs').writeFileSync('node_modules/iife/package.json', '{\\\"name\\\":\\\"iife\\\",\\\"version\\\":\\\"1.0.0\\\",\\\"main\\\":\\\"index.js\\\"}')\""
},
"dependencies": {
"@docusaurus/core": "3.3.0",
"@docusaurus/plugin-client-redirects": "3.3.0",
"@docusaurus/preset-classic": "3.3.0",
"@docusaurus/theme-live-codeblock": "3.3.0",
"@docusaurus/theme-mermaid": "3.3.0",
"@docusaurus/core": "3.2.0",
"@docusaurus/plugin-client-redirects": "3.2.0",
"@docusaurus/preset-classic": "3.2.0",
"@docusaurus/theme-live-codeblock": "3.2.0",
"@docusaurus/theme-mermaid": "3.2.0",
"@easyops-cn/docusaurus-search-local": "0.40.1",
"@emotion/react": "11.11.4",
"@emotion/styled": "11.11.5",
Expand Down Expand Up @@ -72,8 +71,8 @@
]
},
"devDependencies": {
"@docusaurus/module-type-aliases": "3.3.0",
"@docusaurus/types": "3.3.0",
"@docusaurus/module-type-aliases": "3.2.0",
"@docusaurus/types": "3.2.0",
"@genesislcap/genx": "14.173.3",
"@types/mocha": "10.0.6",
"api-docs-sync": "file:./plugins/api-docs",
Expand Down

0 comments on commit c5c7007

Please sign in to comment.