forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(web3): use github actions (solana-labs#19816)
* chore: use github actions * chore: npm audit * chore: fix prettier warn * chore: fix doc errors * chore: add puppeteer
- Loading branch information
Showing
9 changed files
with
554 additions
and
504 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Web3 | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
paths: | ||
- "web3.js/**" | ||
pull_request: | ||
branches: [ master ] | ||
paths: | ||
- "web3.js/**" | ||
|
||
jobs: | ||
check-web3: | ||
runs-on: ubuntu-latest | ||
|
||
defaults: | ||
run: | ||
working-directory: web3.js | ||
|
||
strategy: | ||
matrix: | ||
node: [ '12', '14', '16' ] | ||
|
||
name: Node ${{ matrix.node }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
# maybe needed for base sha below | ||
fetch-depth: 0 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
cache: 'npm' | ||
cache-dependency-path: web3.js/package-lock.json | ||
- run: npm i -g npm@7 | ||
- run: npm ci | ||
- name: commit-lint | ||
if: ${{ github.event_name == 'pull_request' }} | ||
run: bash commitlint.sh | ||
env: | ||
COMMIT_RANGE: ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} | ||
- run: npm run lint | ||
- run: | | ||
npm run build | ||
ls -l lib | ||
test -r lib/index.iife.js | ||
test -r lib/index.cjs.js | ||
test -r lib/index.esm.js | ||
- run: npm run doc | ||
- run: npm run codecov | ||
- run: | | ||
sh -c "$(curl -sSfL https://release.solana.com/edge/install)" | ||
echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH | ||
PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH" | ||
solana --version | ||
- run: npm run test:live-with-test-validator | ||
- run: npm run test:browser-with-test-validator |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
arrowParens: "avoid" | ||
bracketSpacing: false | ||
jsxBracketSameLine: false | ||
semi: true | ||
singleQuote: true | ||
tabWidth: 2 | ||
|
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
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
Oops, something went wrong.