Skip to content

Commit 7d5f526

Browse files
Test worklow
1 parent 7304b3b commit 7d5f526

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/test.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Test packages
2+
on:
3+
# Trigger the workflow on push or pull request,
4+
# but only for the main branch
5+
push:
6+
branches: [ main, develop ]
7+
pull_request:
8+
branches: [ main ]
9+
10+
jobs:
11+
test-app-template:
12+
runs-on: ubuntu-latest
13+
steps:
14+
15+
- name: Install nix
16+
uses: cachix/install-nix-action@v30
17+
with:
18+
install_url: https://releases.nixos.org/nix/nix-2.24.4/install
19+
nix_path: nixpkgs=channel:nixos-24.11
20+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
21+
22+
- uses: cachix/cachix-action@v15
23+
with:
24+
name: holochain-ci
25+
26+
- uses: cachix/cachix-action@v15
27+
with:
28+
name: darksoil-studio
29+
30+
- uses: actions/checkout@v3
31+
32+
- name: Test app template
33+
run: |
34+
nix develop --command bash -c "pnpm build -r --if-present && pnpm test -r --if-present"
35+

0 commit comments

Comments
 (0)