Skip to content

Commit

Permalink
Added build and test gh workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
timlinux committed Dec 16, 2023
1 parent a247b5d commit 25ed2b7
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/nix-build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 📖 Documentation
name: 📖 Test Documentation
on:
pull_request:
push:
Expand All @@ -14,6 +14,7 @@ on:
workflow_dispatch:

jobs:
# Runs when we create or update a PR
tests:
runs-on: ubuntu-latest
steps:
Expand All @@ -24,6 +25,16 @@ jobs:
- uses: DeterminateSystems/magic-nix-cache-action@v2
- run: nix-shell --run "./english_build.sh"

# Runs when we merge a PR
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: DeterminateSystems/magic-nix-cache-action@v2
- run: nix-shell --run "./english_build.sh"

#jobs:
# tests:
Expand Down

0 comments on commit 25ed2b7

Please sign in to comment.