This repository has been archived by the owner on Jul 16, 2024. It is now read-only.
fun with bun [not yet compatible] #1407
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: PR Flow | |
on: | |
pull_request: | |
branches: | |
- "main" | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install nix | |
uses: cachix/install-nix-action@v22 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
extra_nix_config: | | |
auto-optimise-store = true | |
keep-outputs = true | |
keep-derivations = true | |
- name: Cache nix | |
uses: cachix/cachix-action@v12 | |
with: | |
name: effect-ts | |
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
- name: Setup direnv | |
uses: HatsuneMiku3939/direnv-action@v1 | |
with: | |
direnvVersion: 2.32.2 | |
- run: bun install | |
- run: bun run build | |
- run: bun run circular | |
- run: bun test --coverage | |
- run: bun run lint | |
- run: bun run dtslint | |
- run: bun run docs |