1249c0df71
* chore: initial commit * refactor: remove unnecessary wrappers * style: add missing newline * chore: bump bee-js * chore: ignore any cast in fdp * fix: remove cid import * fix: make TextEncoder and TextDecoder available in jest * refactor: dedupe stamp ttl second conversion * refactor: use convenience methods from bee-js * feat: update to bee-js for restored ens support * fix: bump bee-js to get download fix * fix: resolve feed before downloading reference * fix: fix token displays * fix: fix token input modal error message * refactor: remove wallet balance provider * chore: remove dead code * refactor: upcoming bee js 0.15.0 (#692) * chore: initial commit * fix: do not break page when duration seconds is 0 * ci: remove cache * chore: upgrade bee-js * feat: bee-js and bee v2.6 compatibility * chore: switch upcoming/bee-js to ethersphere/bee-js
71 lines
1.6 KiB
YAML
71 lines
1.6 KiB
YAML
name: Check
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'master'
|
|
pull_request:
|
|
branches:
|
|
- '**'
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [18.x]
|
|
|
|
env:
|
|
REACT_APP_BEE_HOST: https://api.test-node.staging.ethswarm.org/
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- name: Install npm deps
|
|
run: npm ci
|
|
|
|
- name: Commit linting
|
|
uses: wagoid/commitlint-github-action@v2
|
|
|
|
- name: Code linting
|
|
run: npm run lint:check
|
|
env:
|
|
CI: true
|
|
|
|
- name: Dependency check
|
|
run: npm run depcheck
|
|
|
|
- name: Types check
|
|
run: npm run check:types
|
|
|
|
- name: Build
|
|
run: npm run build
|
|
|
|
- name: Build Component
|
|
run: npm run build:component
|
|
|
|
- name: Create preview
|
|
uses: ethersphere/swarm-actions/pr-preview@v1
|
|
continue-on-error: true
|
|
with:
|
|
bee-url: https://unlimited.gateway.ethswarm.org
|
|
token: ${{ secrets.GHA_PAT_BASIC }}
|
|
error-document: index.html
|
|
headers: '${{ secrets.GATEWAY_AUTHORIZATION_HEADER }}'
|
|
|
|
- name: Upload to testnet
|
|
uses: ethersphere/swarm-actions/upload-dir@v1
|
|
continue-on-error: true
|
|
with:
|
|
index-document: index.html
|
|
error-document: index.html
|
|
dir: ./build
|
|
bee-url: https://api.gateway.testnet.ethswarm.org
|