Repository navigation
Merge pull request #24 from jappeace-sloth/consolidate-emulator-tests #136
This file contains hidden or 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
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| permissions: | |
| actions: write | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| android: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Local cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: /nix/store | |
| key: "${{ runner.os }}-nix-android-cache" | |
| restore-keys: | | |
| ${{ runner.os }}-nix-android- | |
| - uses: cachix/install-nix-action@v31 | |
| with: | |
| extra_nix_config: | | |
| access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | |
| extra-substituters = https://nix-cache.jappie.me | |
| extra-trusted-public-keys = nix-cache.jappie.me:WjkKcvFtHih2i+n7bdsrJ3HuGboJiU2hA2CZbf9I9oc= | |
| - run: nix-build nix/ci.nix | |
| - name: Run combined emulator test (lifecycle + UI + buttons + scroll) | |
| run: nix-build nix/ci.nix -A emulator-all -o result-emulator-all && ./result-emulator-all/bin/test-all | |
| - name: Cancel workflow on failure | |
| if: failure() | |
| continue-on-error: true | |
| run: gh run cancel ${{ github.run_id }} | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| ios: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Local cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: /nix/store | |
| key: "${{ runner.os }}-nix-ios-cache" | |
| restore-keys: | | |
| ${{ runner.os }}-nix-ios- | |
| - uses: cachix/install-nix-action@v31 | |
| with: | |
| extra_nix_config: | | |
| access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | |
| extra-substituters = https://nix-cache.jappie.me | |
| extra-trusted-public-keys = nix-cache.jappie.me:WjkKcvFtHih2i+n7bdsrJ3HuGboJiU2hA2CZbf9I9oc= | |
| - run: nix-build nix/ci.nix -A simulator-all -A ios-lib | |
| - name: Run combined simulator test (lifecycle + UI + buttons + scroll) | |
| run: nix-build nix/ci.nix -A simulator-all -o result-simulator-all && ./result-simulator-all/bin/test-all-ios | |
| - name: Cancel workflow on failure | |
| if: failure() | |
| continue-on-error: true | |
| run: gh run cancel ${{ github.run_id }} | |
| env: | |
| GH_TOKEN: ${{ github.token }} |