ci: add GitHub actions to build docs site #326
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: "premerge" | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@main | |
- name: Setup Magic Nix cache | |
uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: Install dependencies | |
run: nix develop ./nix --impure --command bash -c "cd plugin && npm install" | |
- name: Check | |
run: nix develop ./nix --impure --command bash -c "cd plugin && npm run check" | |
- name: Build | |
run: nix develop ./nix --impure --command bash -c "cd plugin && npm run build" | |
- name: Test | |
run: nix develop ./nix --impure --command bash -c "cd plugin && npm run test" |