Skip to content

Commit

Permalink
chore:: ci: fixes; prettier-ci: fixes (#133)
Browse files Browse the repository at this point in the history
* style: prettier

Signed-off-by: Nasfame <laciferin@gmail.com>

* ci: env fixes

Signed-off-by: Nasfame <laciferin@gmail.com>

* setup: node arm64

Signed-off-by: Nasfame <laciferin@gmail.com>

* cross: matrix arch

Signed-off-by: Nasfame <laciferin@gmail.com>

* ci: prettier

Signed-off-by: Nasfame <laciferin@gmail.com>

* checkout:main

Signed-off-by: Nasfame <laciferin@gmail.com>

* check:prettier

* try: pr types

Signed-off-by: Nasfame <laciferin@gmail.com>

* try:

Signed-off-by: Nasfame <laciferin@gmail.com>

* ci: ready_for_review

Signed-off-by: Nasfame <laciferin@gmail.com>

* pr: try

Signed-off-by: Nasfame <laciferin@gmail.com>

* prettier: ready_for vewi

Signed-off-by: Nasfame <laciferin@gmail.com>

* ci: on fixes

Signed-off-by: Nasfame <laciferin@gmail.com>

* fixes: persist creds

Signed-off-by: Nasfame <laciferin@gmail.com>

---------

Signed-off-by: Nasfame <laciferin@gmail.com>
  • Loading branch information
Hiro authored Nov 13, 2023
1 parent 3b7d85c commit 53f3ef1
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build[hardhat].yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ defaults:
working-directory: ./hardhat

env:
envfile: ${{secrets.ENVHardhat}}
envfile: ${{secrets.ENVHARDHAT}}

jobs:
build:
Expand All @@ -28,8 +28,8 @@ jobs:

- uses: actions/setup-node@v3
with:
cache: "pnpm"
node-version: "20.9.0"
cache: 'pnpm'
node-version: '20.9.0'
check-latest: true

- name: Write environment
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/cross[hardhat].yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defaults:
working-directory: ./hardhat

env:
envfile: ${{secrets.ENVHardhat}}
envfile: ${{secrets.ENVHARDHAT}}
MODE: test
NODE_ENV: testing

Expand All @@ -34,7 +34,7 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node_version: [18, 19, 20]
architecture: [x64] #, arm64 ] # arm,
architecture: [x64]

runs-on: ${{ matrix.os }}
name: Node ${{ matrix.node_version }} - ${{ matrix.architecture }} on ${{ matrix.os }}
Expand All @@ -48,7 +48,7 @@ jobs:

- uses: actions/setup-node@v3
with:
cache: "pnpm"
cache: 'pnpm'
node-version: ${{ matrix.node_version }}
architecture: ${{ matrix.architecture }}
check-latest: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker[hardhat].yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ concurrency:
cancel-in-progress: true

env:
envfile: ${{secrets.ENVHardhat}}
envfile: ${{secrets.ENVHARDHAT}}
MODE: test
NODE_ENV: testing

Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/e2e+hardhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ concurrency:

env:
envfile: ${{secrets.ENV}}
envHardhat: ${{secrets.ENVHardhat}}
ENVHARDHAT: ${{secrets.ENVHARDHAT}}
MODE: test
NODE_ENV: testing

Expand Down Expand Up @@ -52,14 +52,13 @@ jobs:
- name: Setup Hardhat
working-directory: ./hardhat
run: |
echo $envHardhat > .env
echo $ENVHARDHAT > .env
sed -i 's/ /\n/g' .env
source .env
echo "pnpm install"
pnpm install
npx hardhat compile
#TODO: deploy in local network
- name: Build
run: npm run build
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ on:

pull_request:
branches:

pull_request_target:
types:
- opened
branches:
- 'main'
# needs to match both the filters
types:
# - opened
# - review_requested
# - synchronize
- ready_for_review

# paths: ['**.yaml','**.js', '**.jsx', '**.ts', '**.tsx', '**.css', '**.scss', '**.html', '**.vue', '**.json', '**.md']

workflow_dispatch:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test[hardhat].yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
workflow_dispatch:

env:
envfile: ${{secrets.ENVHardhat}}
envfile: ${{secrets.ENVHARDHAT}}

defaults:
run:
Expand All @@ -28,8 +28,8 @@ jobs:

- uses: actions/setup-node@v3
with:
cache: "pnpm"
node-version: "20.9.0"
cache: 'pnpm'
node-version: '20.9.0'
check-latest: true

- name: Write environment
Expand Down

0 comments on commit 53f3ef1

Please sign in to comment.