From d2cc1576491474dfe637e736d4e5e9023440e7b6 Mon Sep 17 00:00:00 2001 From: Milap Sheth Date: Thu, 25 Jan 2024 17:42:09 -0500 Subject: [PATCH] ci: update gh actions and package.json (#8) --- .github/workflows/lint.yaml | 33 +++++++++++++++++++++++++++++++++ .github/workflows/test.yml | 15 +++++++-------- .gitignore | 2 +- README.md | 12 ++++++------ images/.DS_Store | Bin 6148 -> 0 bytes images/tokens/.DS_Store | Bin 6148 -> 0 bytes package.json | 13 +++++++++---- 7 files changed, 56 insertions(+), 19 deletions(-) create mode 100644 .github/workflows/lint.yaml delete mode 100644 images/.DS_Store delete mode 100644 images/tokens/.DS_Store diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 0000000..4230c5a --- /dev/null +++ b/.github/workflows/lint.yaml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dcd1607..4c5f5e7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/.gitignore b/.gitignore index f3f691e..b295889 100644 --- a/.gitignore +++ b/.gitignore @@ -129,4 +129,4 @@ dist .yarn/install-state.gz .pnp.* -.DS_Store \ No newline at end of file +.DS_Store diff --git a/README.md b/README.md index d7d8021..25a676f 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ -# 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: @@ -15,16 +15,16 @@ To install `bun`, run the following command: 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 git@github.com:axelarnetwork/public-chain-configs.git +git clone git@github.com:axelarnetwork/axelar-configs.git ``` cd into the folder ```bash -cd public-chain-configs +cd axelar-configs ``` Install dependencies diff --git a/images/.DS_Store b/images/.DS_Store deleted file mode 100644 index a1aeb952654498146d8fb04e05922b3347dbb437..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKK~EDw6n+C$wji=Vi$FBl*oz6MMToI6hFUO+9zd3031HoAhqAKFG`m|W5|aJ^ z_2AJT;BPSAJ(_s(;Ke`S!Lt{AGdmkxs|PQ}kbTLU@6DU{X7+vU&g=jHDK%?T06G9@ zr~*^H*!)JsxX=#iQl1ndk#jKc7hGPoU2bj9j zsF%J=k&hmWwOf8ez3Xr7hU@r2KL3$)b*E08?9qC(K5f(7<}EX@f~H@xymirA;oP+& z+phJm8q@j0 z;iPd;xRReVW~Q$m9;UTy?(+5J%8t9s_%r$3KyZhW(yuUr=V-*La;kf(D)K(6>a(s# zb)|dzPW7K2&1$SH5SmQCG7R^maxch@Y>vsj&$_C=(a4GUTF zsF+EvZ8of`!|J)&uOXAU;!2n`)_p#hL9zWg9tY=?*=C?rfp3{#1^VvsN${f3GwDr|=srUOxz5298k>V`t(>Nvk4!+{h- zOxlEjgn>8%-C~?rqQZ8F=s`(71SAbflQ8g48TbJd5ZD+1 diff --git a/images/tokens/.DS_Store b/images/tokens/.DS_Store deleted file mode 100644 index 5008ddfcf53c02e82d7eee2e57c38e5672ef89f6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0