diff --git a/.github/workflows/test-suite.yaml b/.github/workflows/test-suite.yaml index ae460637..ca852035 100644 --- a/.github/workflows/test-suite.yaml +++ b/.github/workflows/test-suite.yaml @@ -1,5 +1,8 @@ name: Test suite - +env: + ALLOWED_URIS: "https://github.com https://api.github.com" + TRUSTED_PUBLIC_KEYS: "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= marlowe-temp.cachix.org-1:1gPjVFpu4QjaAT3tRurCioX+BC23V7mjvFwpP5bV0Ec= loony-tools:pr9m4BkM/5/eSTZlkQyRt57Jz7OMBxNSUiMC4FkcNfk=" + SUBSTITUTERS: "https://cache.nixos.org/ https://cache.iog.io https://marlowe-temp.cachix.org https://cache.zw3rk.com/" on: pull_request: types: @@ -7,17 +10,21 @@ on: - synchronize jobs: - check-changelog: + test-suite: runs-on: ubuntu-latest steps: - name: 📥 Checkout repository uses: actions/checkout@v3.3.0 - - - name: 🧰 Setup nix + - name: 🐣 Install Nix uses: cachix/install-nix-action@v22 with: - github_access_token: ${{ secrets.GITHUB_TOKEN }} - + nix_path: nixpkgs=channel:nixos-unstable + install_url: https://releases.nixos.org/nix/nix-2.10.3/install + extra_nix_config: | + allowed-uris = ${{ env.ALLOWED_URIS }} + trusted-public-keys = ${{ env.TRUSTED_PUBLIC_KEYS }} + substituters = ${{ env.SUBSTITUTERS }} + experimental-features = nix-command flakes - name: 🔨 Build project run: | nix develop --show-trace --command bash -c "npm i && npm run build" diff --git a/package.json b/package.json index 4ea5a0e2..98c2deaa 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ ], "license": "Apache-2.0", "scripts": { - "build": "tsc --build && shx mkdir -p dist && rollup --config rollup/config.mjs", + "build": "tsc --version && tsc --build && shx mkdir -p dist && rollup --config rollup/config.mjs", "clean": "npm run clean --workspaces && shx rm -rf dist", "test": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest", "docs": "typedoc .",