diff --git a/.github/install-nix/action.yml b/.github/install-nix/action.yml index 3ee26f67..63d9b715 100644 --- a/.github/install-nix/action.yml +++ b/.github/install-nix/action.yml @@ -33,6 +33,8 @@ runs: using: 'composite' steps: - name: Log GH API rate limits + env: + GH_TOKEN: ${{ github.token }} shell: bash run: gh api /rate_limit | jq diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 88c8ab7c..f2a2e847 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,16 +26,17 @@ jobs: test-mcl: runs-on: self-hosted steps: + - name: Checkout first to use locally defined actions + uses: actions/checkout@v4 + - name: Install Nix - uses: metacraft-labs/nixos-modules/.github/install-nix@main + uses: ./.github/install-nix with: cachix-cache: ${{ vars.CACHIX_CACHE }} cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }} trusted-public-keys: ${{ vars.TRUSTED_PUBLIC_KEYS }} substituters: ${{ vars.SUBSTITUTERS }} - - uses: actions/checkout@v4 - - name: Build and test the `mcl` command run: nix develop -c sh -c "dub test --root packages/mcl -- -e 'fetchJson|(coda\.)|nix.run|nix.build'"