feat: P-chain dynamic fees #283
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
name: PR checks | |
on: pull_request | |
jobs: | |
lint: | |
name: Lint and build | |
runs-on: ubuntu-latest | |
environment: alpha | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 20.x | |
- name: Create .npmrc | |
run: echo '//registry.npmjs.org/:_authToken= ${{ secrets.NPM_TOKEN }}' >> .npmrc | |
- name: Create env file | |
run: | | |
touch .env.production | |
echo POSTHOG_KEY=${{ secrets.POSTHOG_KEY }} >> .env.production | |
echo GLACIER_URL=${{ secrets.GLACIER_URL }} >> .env.production | |
echo PROXY_URL=${{ secrets.PROXY_URL }} >> .env.production | |
echo CORE_EXTENSION_LANDING_URL=${{ secrets.CORE_EXTENSION_LANDING_URL }} >> .env.production | |
- name: Install dependencies | |
run: yarn setup | |
- name: Lint | |
run: yarn lint | |
- name: Typecheck | |
run: yarn typecheck | |
- name: Check if localization was updated | |
run: | | |
yarn scanner | |
git --no-pager diff | |
if [[ $(git status --short) == '' ]]; then exit 0; else exit 1; fi | |
- name: Test | |
run: yarn test | |
- name: Build extension | |
run: yarn build |