diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..4d7d3fb --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,27 @@ +# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions +name: Node.js CI +on: + push: + branches: master + pull_request: +jobs: + build: + timeout-minutes: 60 + runs-on: ubuntu-latest + steps: + - uses: actions/setup-node@v2 + with: + node-version: 16.x + - uses: actions/checkout@v2 + - uses: pnpm/action-setup@v2 + with: + version: 8.11.0 + + - name: Install Foundry + uses: foundry-rs/foundry-toolchain@v1 + with: + version: nightly + - run: pnpm i + - run: forge build + - run: pnpm test diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..829951d --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +public-hoist-pattern=* \ No newline at end of file diff --git a/package.json b/package.json index cee8462..3f4068f 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,6 @@ "test": "test" }, "scripts": { - "preinstall": "npx only-allow pnpm", "test": "forge test", "prepare": "husky install", "build": "tsc"