From 81478ac88ebc42b18d2ae616737881bdd6304028 Mon Sep 17 00:00:00 2001 From: Hiro Date: Tue, 14 Nov 2023 18:21:06 +0530 Subject: [PATCH] ci: fixes cross hardhat (#148) * style: prettier Signed-off-by: Nasfame * ci: env fixes Signed-off-by: Nasfame * setup: node arm64 Signed-off-by: Nasfame * cross: matrix arch Signed-off-by: Nasfame * ci: prettier Signed-off-by: Nasfame * checkout:main Signed-off-by: Nasfame * check:prettier * try: pr types Signed-off-by: Nasfame * try: Signed-off-by: Nasfame * ci: ready_for_review Signed-off-by: Nasfame * pr: try Signed-off-by: Nasfame * prettier: ready_for vewi Signed-off-by: Nasfame * ci: on fixes Signed-off-by: Nasfame * fixes: persist creds Signed-off-by: Nasfame * ci: setup upterm Signed-off-by: Nasfame * cross: setup uptream only when req Signed-off-by: Nasfame * cross: setup tmate session Signed-off-by: Nasfame * cross: reorder os jobs Signed-off-by: Nasfame * ci: cross...... Signed-off-by: Nasfame * cross: setup working directory Signed-off-by: Nasfame * prettier: ignore hardhat Signed-off-by: Nasfame * cross: fixes Signed-off-by: Nasfame * cross: envfile experiment Signed-off-by: Nasfame * ci: experiment tmate Signed-off-by: Nasfame * cross: serctest ENV HARHDat Signed-off-by: Nasfame * cross: fix .envfile Signed-off-by: Nasfame * fix: cross Signed-off-by: Nasfame * cross: .env.tmp Signed-off-by: Nasfame * cross: write file action fixes Signed-off-by: Nasfame * fix: write file action Signed-off-by: Nasfame * cross: envfile Signed-off-by: Nasfame * ci: cross Signed-off-by: Nasfame * final: fixes Signed-off-by: Nasfame --------- Signed-off-by: Nasfame --- .github/workflows/cross.yml | 1 + .github/workflows/cross[hardhat].yml | 14 +++++++++++++- .prettierignore | 1 + 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cross.yml b/.github/workflows/cross.yml index 855a8f1d..c24b2045 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 f06c4c3e..0c36775a 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 abcbe544..eac195a7 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,3 +1,4 @@ .next/ pnpm-lock.yaml prisma/generated +hardhat/ \ No newline at end of file