More drift testing #6
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: PR - vite-hardhat | |
on: | |
pull_request: | |
paths: | |
- 'vite-hardhat/**' | |
jobs: | |
test-vite-hardhat: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: vite-hardhat | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get latest version | |
id: versions_step | |
run: | | |
output=$(node ../.github/scripts/latest.js) | |
echo "Output from Node.js script: $output" | |
STABLE=$(echo $output | jq -r '.stable') | |
echo "::set-output name=stable::$STABLE" | |
- name: Set up yarn | |
uses: ./.github/actions/setup-yarn | |
with: | |
project: vite-hardhat | |
- name: Set up nargo | |
uses: ./.github/actions/setup-nargo | |
with: | |
version: ${{ steps.versions_step.outputs.stable }} | |
- name: Enable Corepack before setting up Node | |
run: corepack enable | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.10.0 | |
cache: 'yarn' | |
- name: Install | |
run: yarn --immutable | |
shell: bash | |
- name: 'Create env file' | |
run: | | |
touch .env | |
echo SEPOLIA_ALCHEMY_KEY="${{ secrets.SEPOLIA_ALCHEMY_KEY }}" >> .env | |
echo SEPOLIA_DEPLOYER_PRIVATE_KEY="${{ secrets.SEPOLIA_DEPLOYER_PRIVATE_KEY }}" >> .env | |
echo MUMBAI_ALCHEMY_KEY"=${{ secrets.MUMBAI_ALCHEMY_KEY }}" >> .env | |
echo MUMBAI_DEPLOYER_PRIVATE_KEY="${{ secrets.MUMBAI_DEPLOYER_PRIVATE_KEY }}" >> .env | |
- name: Run test | |
run: yarn test |