mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
tests/fakedroid: emulate a nix-on-droid-like env for testing
This commit is contained in:
parent
343ec2ccc2
commit
a6b8efbae3
5 changed files with 193 additions and 5 deletions
34
.github/workflows/fakedroid-odt.yml
vendored
Normal file
34
.github/workflows/fakedroid-odt.yml
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
name: 'run on-device-tests with fakedroid'
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
jobs:
|
||||
fakedroid-odt:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
||||
- uses: actions/checkout@v2.4.0
|
||||
|
||||
- uses: cachix/install-nix-action@v15
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-21.11
|
||||
extra_nix_config: "experimental-features = nix-command"
|
||||
|
||||
- uses: cachix/cachix-action@v10
|
||||
with:
|
||||
name: nix-on-droid
|
||||
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
||||
|
||||
- name: init
|
||||
run: tests/fakedroid.sh echo INIT
|
||||
|
||||
- name: test
|
||||
run: |
|
||||
tests/fakedroid.sh mkdir -p .cache/nix-on-droid-self-test
|
||||
tests/fakedroid.sh touch .cache/nix-on-droid-self-test/confirmation-granted
|
||||
tests/fakedroid.sh nix-on-droid on-device-test
|
||||
|
||||
- name: upload
|
||||
if: always()
|
||||
run: tests/fakedroid.sh nix-shell -p cachix --run 'nix path-info --all | cachix push nix-on-droid'
|
||||
Loading…
Add table
Add a link
Reference in a new issue