Local Playground #68
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Node.js CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
types: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
- name: Install Bun | |
run: | | |
curl -fsSL https://bun.sh/install | bash | |
echo "$HOME/.bun/bin" >> $GITHUB_PATH | |
- name: Cache node modules | |
uses: actions/cache@v4 | |
with: | |
path: | | |
node_modules | |
src/playground/node_modules | |
~/.bun/install/cache | |
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }} | |
restore-keys: | | |
${{ runner.os }}-bun- | |
- name: Install & Build Root Project | |
run: bun install --frozen-lockfile | |
- name: Install & Build Playground | |
working-directory: src/playground | |
run: bun install --frozen-lockfile | |
- name: Build Full Project | |
run: bun run build | |
- name: Lint Full Project | |
run: bun lint |