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

ci: update gh actions and package.json #8

Merged
merged 1 commit into from
Jan 25, 2024
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
33 changes: 33 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Linting

on: pull_request

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Setup bun
uses: oven-sh/setup-bun@v1

- name: Install dependencies
run: bun install

- name: Format files
run: bun run format

- name: Check for changes
run: |
if [ -n "$(git status --porcelain)" ]; then
echo Following files are changed by the formatter...
git status

echo Changes:
git diff

exit 1;
else
exit 0;
fi
15 changes: 7 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,18 @@ on:
- pull_request

jobs:
setup-and-test:
name: setup-and-test
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: Checkout repo
uses: actions/checkout@v4

- name: setup bun
- name: Setup bun
uses: oven-sh/setup-bun@v1

# run any `bun` or `bunx` command
- name: install dependencies
- name: Install dependencies
run: bun install

- name: run tests
- name: Run tests
run: bun run test
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,4 @@ dist
.yarn/install-state.gz
.pnp.*

.DS_Store
.DS_Store
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
# public-chain-configs
# Axelar configs

A public registry for chains and asset configurations
A public registry for chains and asset configurations for applications built on the Axelar network.

## Getting started

Before we begin, make sure your system has the minimum runtime requirements:

- [git](https://git-scm.com/downloads)
- [bun](https://bun.sh/) >= 1.0
- [bun](https://bun.sh/) >= 1.0 OR [npm](https://docs.npmjs.com/)

To install `bun`, run the following command:

```bash
curl -fsSL https://bun.sh/install | bash
```

Once you have `nodejs` and `bun`, you can clone this repository:
Once you have `bun` or `nodejs` installed, you can clone this repository:

```bash
git clone [email protected]:axelarnetwork/public-chain-configs.git
git clone [email protected]:axelarnetwork/axelar-configs.git
```

cd into the folder

```bash
cd public-chain-configs
cd axelar-configs
```

Install dependencies
Expand Down
Binary file removed images/.DS_Store
Binary file not shown.
Binary file removed images/tokens/.DS_Store
Binary file not shown.
13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "public-chain-configs",
"version": "0.0.1",
"description": "Axelar Network public chain & assets registry",
"name": "axelar-configs",
"version": "1.0.0",
"description": "A public registry for chains and asset configurations for applications built on the Axelar network",
"type": "module",
"scripts": {
"format": "prettier --write .",
Expand All @@ -12,7 +12,12 @@
"test": "vitest --run",
"prepare": "husky install"
},
"keywords": [],
"keywords": [
"axelar",
"ethereum",
"blockchain",
"interoperability"
],
"license": "LicenseRef-LICENSE",
"dependencies": {
"@inquirer/prompts": "^3.2.0"
Expand Down
Loading