diff --git a/.github/workflows/cross.yml b/.github/workflows/cross.yml index 855a8f1..c24b204 100644 --- a/.github/workflows/cross.yml +++ b/.github/workflows/cross.yml @@ -84,6 +84,7 @@ jobs: check-latest: true - name: Write environment #TODO: add coachroach ssl certificate + shell: bash run: | echo $envfile > .env.tmp sed 's/ /\n/g' .env.tmp > .env diff --git a/.github/workflows/cross[hardhat].yml b/.github/workflows/cross[hardhat].yml index f06c4c3..0c36775 100644 --- a/.github/workflows/cross[hardhat].yml +++ b/.github/workflows/cross[hardhat].yml @@ -32,7 +32,7 @@ jobs: max-parallel: 2 fail-fast: false matrix: - os: [ubuntu-latest, macos-latest, windows-latest] + os: [windows-latest, ubuntu-latest, macos-latest] node_version: [18, 19, 20] architecture: [x64] @@ -53,11 +53,23 @@ jobs: architecture: ${{ matrix.architecture }} check-latest: true + - uses: DamianReeves/write-file-action@master + with: + path: ${{github.workspace}}/.env.tmp + write-mode: overwrite + contents: | + ${{secrets.ENVHARDHAT}} + - name: Write environment + shell: bash run: | echo $envfile > .env.tmp sed 's/ /\n/g' .env.tmp > .env + # - name: Setup tmate session + # if: ${{matrix.os}}==windows-latest + # uses: mxschmitt/action-tmate@v3 + - name: Install dependencies run: pnpm install diff --git a/.prettierignore b/.prettierignore index abcbe54..eac195a 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,3 +1,4 @@ .next/ pnpm-lock.yaml prisma/generated +hardhat/ \ No newline at end of file