Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

promote dev to master #758

Merged
merged 5 commits into from
May 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
[![CodeQL](https://github.com/Synthetixio/synpress/actions/workflows/codeql.yml/badge.svg?branch=master)](https://github.com/Synthetixio/synpress/actions/workflows/codeql.yml)
[![Release CI](https://github.com/Synthetixio/synpress/actions/workflows/release.yml/badge.svg?branch=master)](https://github.com/Synthetixio/synpress/actions/workflows/release.yml)
[![synpress](https://img.shields.io/endpoint?url=https://dashboard.cypress.io/badge/count/ohpeaz/master&style=flat&logo=cypress)](https://dashboard.cypress.io/projects/ohpeaz/runs)
[![Discord](https://img.shields.io/discord/413890591840272394.svg?color=768AD4&label=discord&logo=https%3A%2F%2Fdiscordapp.com%2Fassets%2F8c9701b98ad4372b58f13fd9f65f966e.svg)](https://discordapp.com/channels/413890591840272394/)
[![Twitter Follow](https://img.shields.io/twitter/follow/synthetix_io.svg?label=synthetix_io&style=social)](https://twitter.com/synthetix_io)
[![Discord](https://img.shields.io/discord/1103781993394733136.svg?color=768AD4&label=discord&logo=https%3A%2F%2Fdiscordapp.com%2Fassets%2F8c9701b98ad4372b58f13fd9f65f966e.svg)](https://discord.gg/XhZKSRGtWc)
[![Twitter Follow](https://img.shields.io/twitter/follow/synpress_.svg?label=synpress&style=social)](https://twitter.com/synpress_)

> **We're Hiring 🎉** — Think you have what it takes?
> Feel free to drop an email to [jobs@synpress.io](mailto:jobs@synpress.io)
> **We're Hiring 🎉** — Think you have what it takes?
> We're looking for Software Engineer, [find out more](https://mirror.xyz/synpress.eth/FXhd5-7e7wBmYYtfmqkF0h7FhDBRUGuGF6j-D7jPpvM).

#

Expand Down Expand Up @@ -63,6 +63,7 @@ more details.

# Table of content

- [🧑‍🤝‍🧑 Community](-community)
- [🖥️ Install](#%EF%B8%8F-install)
- [⚙️ Supported frameworks](#%EF%B8%8F-supported-frameworks)
- [👝 Supported wallets](#-supported-wallets)
Expand All @@ -77,6 +78,12 @@ more details.
- [🚢 Release process](#-release-process)
- [📝 More resources](#-more-resources)

## 🧑‍🤝‍🧑 Community

- [Discord](https://discord.gg/XhZKSRGtWc) => for **live support** and direct chat with devs.
- [Twitter](https://twitter.com/synpress_) => for updates and announcements.
- [GitHub Discussions](https://github.com/Synthetixio/synpress/discussions) => for technical questions and feature requests.

## 🖥️ Install

```bash
Expand Down
11 changes: 10 additions & 1 deletion helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ const { ethers } = require('ethers');
const download = require('download');
const packageJson = require('./package.json');
const chains = require('viem/chains');
const appRoot = require('app-root-path');
const os = require('os');

let currentNetwork = chains.mainnet;
// list of added networks to metamask
Expand Down Expand Up @@ -221,7 +223,14 @@ module.exports = {
},
async prepareMetamask(version) {
const release = await module.exports.getMetamaskReleases(version);
const downloadsDirectory = path.resolve(__dirname, 'downloads');

let downloadsDirectory;
if (os.platform() === 'win32') {
downloadsDirectory = appRoot.resolve('/node_modules');
} else {
downloadsDirectory = path.resolve(__dirname, 'downloads');
}

await module.exports.createDirIfNotExist(downloadsDirectory);
const metamaskDirectory = path.join(downloadsDirectory, release.tagName);
const metamaskDirectoryExists = await module.exports.checkDirOrFileExist(
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"@testing-library/react": "^14.0.0",
"@types/testing-library__cypress": "^5.0.9",
"@viem/anvil": "^0.0.5",
"app-root-path": "^3.1.0",
"axios": "^1.4.0",
"babel-plugin-istanbul": "^6.1.1",
"babel-plugin-react-generate-property": "^1.1.2",
Expand Down
8 changes: 8 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.