Skip to content

Build coverage in CI (#1) #8

Build coverage in CI (#1)

Build coverage in CI (#1) #8

Workflow file for this run

name: Build and deploy
on:
push:
branches: master
pull_request:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v31
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Build coverage
run: git clone --depth=1 https://github.com/dmjio/miso && cd miso && nix develop .#typescript --command bash -c "bun install && bun run test"
- name: Upload coverage
uses: actions/upload-pages-artifact@v3
with:
path: ./miso/coverage
deploy:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4