Skip to content

fix: remove .only

fix: remove .only #679

name: npm
on: [push]
jobs:
install-with-cache:
name: mocha tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.18.0'
always-auth: true
registry-url: https://registry.npmjs.org
scope: '@kreskolabs'
- run: git config --global url."https://${{ secrets.GH_TOKEN }}@github.com/".insteadOf ssh://[email protected]/
- run: corepack enable
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Install Foundry Dependencies
run: forge install
- uses: pnpm/[email protected]
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install packages
run: pnpm i
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: cp .env.example .env
- run: npm run test:ci
env:
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
MNEMONIC_DEVNET: ${{ secrets.MNEMONIC_DEVNET }}