major: removing the oldest code #59
Workflow file for this run
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: Analyze | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
install: | |
name: Install | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install Bun | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- name: Cache Bun dependencies | |
id: bun-cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.bun | |
node_modules | |
key: bun-${{ runner.os }}-${{ hashFiles('bun.lockb') }} | |
restore-keys: | | |
bun-${{ runner.os }}- | |
- name: Install modules | |
if: steps.bun-cache.outputs.cache-hit != 'true' | |
run: bun install --frozen-lockfile | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
needs: install | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install Bun | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- name: Restore dependencies | |
id: bun-cache | |
uses: actions/cache/restore@v4 | |
with: | |
path: | | |
~/.bun | |
node_modules | |
key: bun-${{ runner.os }}-${{ hashFiles('bun.lockb') }} | |
- name: Install modules | |
if: steps.bun-cache.outputs.cache-hit != 'true' | |
run: bun install --frozen-lockfile | |
- name: Run build | |
run: bun run build | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
needs: install | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install Bun | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- name: Restore dependencies | |
id: bun-cache | |
uses: actions/cache/restore@v4 | |
with: | |
path: | | |
~/.bun | |
node_modules | |
key: bun-${{ runner.os }}-${{ hashFiles('bun.lockb') }} | |
- name: Install modules | |
if: steps.bun-cache.outputs.cache-hit != 'true' | |
run: bun install --frozen-lockfile | |
- name: Run tests | |
run: bun run test |