Skip to content

antongolub/demo-action-setup-bun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

demo-action-setup-bun

Testing repo to verify action-setup-bun work

CI

name: CI
on: [push, pull_request]
jobs:
  first:
    name: First job
    runs-on: ubuntu-20.04
    steps:
      - name: Checkout
        uses: actions/checkout@v3

      - name: Setup Bun Runtime (1)
        uses: antongolub/action-setup-bun@v1
        with:
          cache: true
          bun-config: '{"install": {"production": true}}'

      - name: Install deps (cache warmup)
        run: bun install

      - name: Run script (1)
        run: bun index.js

      # https://github.com/actions/toolkit/issues/58
      - name: Setup Bun Runtime (2) again
        uses: antongolub/action-setup-bun@v1
        with:
          cache: true
          bun-config: '{}'

      - name: Install deps (2)
        run: bun install

      - name: Run script (2)
        run: bun index.js

  second:
    name: Second job
    needs: first
    runs-on: ubuntu-20.04
    steps:
      - name: Checkout
        uses: actions/checkout@v3

      - name: Setup Bun Runtime
        uses: antongolub/action-setup-bun@v1
        with:
          cache: true

      - name: Install deps (from cache)
        run: bun install

      - name: Run script
        run: |
          bun index.js
          bun index.ts

License

MIT

About

Testing repo to verify `action-setup-bun` work

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published