From 973f03c8b4a3dcd2516d205b0c430f69d64ee272 Mon Sep 17 00:00:00 2001 From: Ryan Ghods Date: Wed, 27 May 2020 18:25:08 -0700 Subject: [PATCH 1/3] add github actions for ci --- .github/workflows/build.yml | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000000..322bbfeb57 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,39 @@ +name: Build +on: + push: + branches: + - ethers-v5-beta + tags: + - v5.* + pull_request: + types: [opened, reopened, synchronize] +jobs: + test-node: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [10.x, 12.x, 13.x] + steps: + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - uses: actions/checkout@v2 + - run: npm ci + - run: npm run bootstrap + - run: npm run build + - run: npm run test-node + test-browser: + runs-on: ubuntu-latest + strategy: + matrix: + module: ['esm', 'umd'] + steps: + - uses: actions/setup-node@v1 + with: + node-version: 12.x + - uses: actions/checkout@v2 + - run: npm ci + - run: npm run bootstrap + - run: npm run build + - run: npm run test-browser-${{ matrix.module }} From dd4945493aa324c6677f46c363edd92fc0318047 Mon Sep 17 00:00:00 2001 From: Ryan Ghods Date: Wed, 27 May 2020 19:48:37 -0700 Subject: [PATCH 2/3] add readme badges --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 5644737a29..2fb19f353c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ The Ethers Project ================== +[![NPM Package][npm-badge]][npm-link] +[![Actions Status][actions-badge]][actions-link] + **EXPERIMENTAL** This branch is the next release of ethers.js, which should @@ -97,3 +100,7 @@ License MIT License (including **all** dependencies). +[npm-badge]: https://img.shields.io/npm/v/ethers/next.svg +[npm-link]: https://www.npmjs.com/package/ethers/v/next +[actions-badge]: https://github.com/ethers-io/ethers.js/workflows/Build/badge.svg?branch=ethers-v5-beta +[actions-link]: https://github.com/ethers-io/ethers.js/actions From 1dc8a7792ec5a6838c8fad2ca469331894d999d7 Mon Sep 17 00:00:00 2001 From: Ryan Ghods Date: Thu, 28 May 2020 11:12:06 -0700 Subject: [PATCH 3/3] remove prior workflow file --- .github/workflows/nodejs.yml | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 .github/workflows/nodejs.yml diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml deleted file mode 100644 index f5abebe1ae..0000000000 --- a/.github/workflows/nodejs.yml +++ /dev/null @@ -1,29 +0,0 @@ -# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions - -name: Node.js CI - -on: - push: - branches: [ ethers-v5-beta ] - -jobs: - build: - - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [10.x, 12.x] - - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm ci - - run: npm run bootstap - - run: npm run build - - run: npm test -