Skip to content

Commit

Permalink
Workflows fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Jul 10, 2024
1 parent 54d3be0 commit fa374ac
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ jobs:

- name: Test app template
run: |
nix develop --command bash -c "sh run_test_app.sh"
nix develop --accept-flake-config --command bash -c "sh run_test_app.sh"
2 changes: 1 addition & 1 deletion .github/workflows/test-zome.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ jobs:

- name: Test zome template
run: |
nix develop --command bash -c "sh run_test_zome.sh"
nix develop --accept-flake-config --command bash -c "sh run_test_zome.sh"
4 changes: 2 additions & 2 deletions templates/app/web-app/.github/workflows/test.yaml.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches: [ main, develop ]

jobs:
testbuild:
test-and-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -28,4 +28,4 @@ jobs:

- name: Install and test
run: |
nix develop --command bash -c "pnpm i && pnpm t && pnpm package"
nix develop --accept-flake-config --command bash -c "pnpm i && pnpm t && pnpm package"
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
branches: [ main ]

jobs:
testbuild:
build-and-cache-nix-packages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -24,24 +24,24 @@ jobs:

- name: Install and test
run: |
nix develop --command bash -c "pnpm i && pnpm t && pnpm -F @holochain-open-dev/{{kebab_case app_name}} build"
nix develop --accept-flake-config --command bash -c "pnpm i && pnpm t && pnpm -F @holochain-open-dev/{{kebab_case app_name}} build"

- name: Build zomes
env:
CACHIX_AUTH_TOKEN: "$\{{ secrets.CACHIX_TOKEN_HOLOCHAIN_OPEN_DEV }}"
run: |
nix build -L .#{{snake_case app_name}}_integrity
nix build --accept-flake-config -L .#{{snake_case app_name}}_integrity
cachix push holochain-open-dev $(nix path-info --accept-flake-config .#{{snake_case app_name}}_integrity)
cachix pin holochain-open-dev {{snake_case app_name}}_integrity_debug $(nix path-info --accept-flake-config .#{{snake_case app_name}}_integrity)

nix build -L .#{{snake_case app_name}}_integrity.meta.release
nix build --accept-flake-config -L .#{{snake_case app_name}}_integrity.meta.release
cachix push holochain-open-dev $(nix path-info --accept-flake-config .#{{snake_case app_name}}_integrity)
cachix pin holochain-open-dev {{snake_case app_name}}_integrity $(nix path-info --accept-flake-config .#{{snake_case app_name}}_integrity.meta.release)

nix build -L .#{{snake_case app_name}}
nix build --accept-flake-config -L .#{{snake_case app_name}}
cachix push holochain-open-dev $(nix path-info --accept-flake-config .#{{snake_case app_name}})
cachix pin holochain-open-dev {{snake_case app_name}}_debug $(nix path-info --accept-flake-config .#{{snake_case app_name}})

nix build -L .#{{snake_case app_name}}.meta.release
nix build --accept-flake-config -L .#{{snake_case app_name}}.meta.release
cachix push holochain-open-dev $(nix path-info --accept-flake-config .#{{snake_case app_name}}.meta.release)
cachix pin holochain-open-dev {{snake_case app_name}} $(nix path-info --accept-flake-config .#{{snake_case app_name}}.meta.release)
4 changes: 2 additions & 2 deletions templates/zome/web-app/.github/workflows/test.yaml.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches: [ main, develop ]

jobs:
testbuild:
test-and-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -28,4 +28,4 @@ jobs:

- name: Install and test
run: |
nix develop --command bash -c "pnpm i && pnpm t && pnpm -F @holochain-open-dev/{{kebab_case app_name}} build"
nix develop --accept-flake-config --command bash -c "pnpm i && pnpm t && pnpm -F @holochain-open-dev/{{kebab_case app_name}} build"
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Update Flake
run: |
nix flake update
nix develop
nix develop --accept-flake-config

- uses: dorny/paths-filter@v3
id: changes
Expand Down

0 comments on commit fa374ac

Please sign in to comment.