Skip to content

feat: impersonating sender of requests to a local PocketIC instance #8327

feat: impersonating sender of requests to a local PocketIC instance

feat: impersonating sender of requests to a local PocketIC instance #8327

name: Check that nix/sources.json and scripts/dfx-asset-sources.sh are consistent
on:
pull_request:
push:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
# When getting Rust dependencies, retry on network error:
CARGO_NET_RETRY: 10
# Use the local .curlrc
CURL_HOME: .
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v18
with:
nix_path: nixpkgs=channel:nixos-21.05-small
- name: Install dependencies
run: sudo apt-get install --yes jq
- name: Check
run: |
./scripts/write-dfx-asset-sources.sh
if [ -z "$(git status --porcelain)" ]
then
exit 0
else
git diff
echo "scripts/dfx-asset-sources.sh is out of date. Please run:"
echo " scripts/write-dfx-asset-sources.sh"
exit 1
fi