🚀 🪲 Remove weird package.json thing #166
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: [push] | |
env: | |
FOUNDRY_PROFILE: ci | |
jobs: | |
check: | |
strategy: | |
fail-fast: true | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Build Project | |
run: | | |
forge --version | |
forge build --sizes | |
id: build | |
- name: Test Project | |
run: | | |
forge test --fork-url ${{ secrets.OPTIMISM_GOERLI_RPC_URL }} --etherscan-api-key ${{ secrets.ETHERSCAN_API_KEY }} -vvv | |
id: test | |
hardhat_test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
- name: Building on Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '18.12.0' | |
- name: Update NPM | |
run: npm install -g [email protected] | |
# - uses: actions/cache@v2 | |
# with: | |
# path: '**/node_modules' | |
# key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} | |
- name: Install dependencies | |
run: npm i --no-audit | |
# - name: Compile contracts | |
# run: npx hardhat compile | |
- name: Execute contract tests | |
run: npx hardhat test |