Fastlane flag to hide logo #5257
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: build | |
on: | |
# run on push but only for the main branch | |
push: | |
branches: | |
- main | |
# run for every pull request | |
pull_request: {} | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- name: ⬇️ Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: 🤝 Set Node version from .nvmrc | |
run: echo NVMRC=`cat .nvmrc` >> $GITHUB_ENV | |
- name: ⎔ Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NVMRC }} | |
registry-url: "https://registry.npmjs.org" | |
- name: 📥 Download deps | |
uses: bahmutov/npm-install@v1 | |
with: | |
useLockFile: false | |
- name: ▶️ Run Lint | |
run: npm run lint | |
- name: ▶️ Run Typecheck | |
run: npm run typecheck | |
- name: ▶️ Run Vitest | |
run: npm run test:unit | |
- name: ▶️ Run Karma | |
run: npm run karma | |
- name: ▶️ Run Jest SSR | |
run: npm run jest-ssr | |
# Temporarily disable this until after button redesign project | |
# - name: ▶️ Run Jest Screenshot | |
# run: npm run jest-screenshot | |
- name: ▶️ Run Percy Screenshot | |
if: ${{ github.actor != 'renovate[bot]' }} | |
run: npm run percy-screenshot | |
env: | |
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }} | |
- name: ▶️ Run Build | |
run: npm run build | |
- name: ⬆️ Upload karma coverage report | |
uses: codecov/codecov-action@v3 | |
with: | |
directory: ./coverage/karma | |
flags: karma | |
- name: ⬆️ Upload jest coverage report | |
uses: codecov/codecov-action@v3 | |
with: | |
directory: ./coverage/jest | |
flags: jest | |
- name: ⬆️ Upload vitest coverage report | |
uses: codecov/codecov-action@v3 | |
with: | |
directory: ./coverage/vitest | |
flags: vitest | |
- name: 🤏 Check Bundle Size | |
run: npm run check-size | |
env: | |
BUNDLEMON_PROJECT_ID: 6166e8ee491d1e00090fee72 | |
CI_COMMIT_SHA: ${{github.event.pull_request.head.sha || github.sha}} |