Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
fvictorio committed Apr 24, 2024
1 parent a02fa13 commit 854c083
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/run-hardhat-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Run Hardhat tests

on: [pull_request]

jobs:
publish-in-verdaccio:
name: Publish EDR in verdaccio
# TODO: run in windows and macos too
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# setup rust and node
- name: Install Rust (stable)
uses: actions-rs/toolchain@v1
with:
profile: minimal
override: true
- uses: Swatinem/rust-cache@v2
- name: Use Node.js 20.x
uses: actions/setup-node@v1
with:
node-version: 20.x
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
# verdaccio
- name: Install verdaccio
run: npm install -g verdaccio@5
- name: Prepare verdaccio config
run: |
mkdir storage
echo "storage: ./storage" > verdaccio.yml
echo "packages:" >> verdaccio.yml
echo " '**':" >> verdaccio.yml
echo ' access: $all' >> verdaccio.yml
echo ' publish: $all' >> verdaccio.yml
echo ' unpublish: $all' >> verdaccio.yml
echo ' proxy: npmjs' >> verdaccio.yml
echo '//localhost:4873/:_authToken="tFLPfP7k4DiiOvZ9K/rnTw=="' > .npmrc
- name: Test
run: cat verdaccio.yml
- name: Start verdaccio
run: verdaccio --config verdaccio.yml &
# build and publish
- name: Build EDR
run: cd crates/edr_napi && pnpm install && pnpm build
- name: Test
run: ls
# - name: Publish package in verdaccio
# run: npm publish --registry http://localhost:4873
# - name: Clone hardhat
# uses: actions/checkout@master
# with:
# repository: NomicFoundation/hardhat
# ref: refs/heads/main
# path: hardhat
# - name: cd into hardhat
# run: cd $GITHUB_WORKSPACE/hardhat/packages/hardhat-core
# - name: Install project
# run: pnpm install --registry http://localhost:4873 test-verdaccio-ci
#

0 comments on commit 854c083

Please sign in to comment.