Skip to content

Merge branch 'feat/refactor-query-syntax' of https://github.com/alixl… #2088

Merge branch 'feat/refactor-query-syntax' of https://github.com/alixl…

Merge branch 'feat/refactor-query-syntax' of https://github.com/alixl… #2088

Workflow file for this run

name: CI
on:
push:
branches-ignore:
- main
- beta
- release/latest
- release/beta
jobs:
commit-checks:
name: Lint, test, and build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Install packages
run: npm ci
- name: Type-checking
run: npm run ci:typecheck
- name: ESLint
run: npm run lint
- name: Vitest
run: npm run ci:test
- name: Upload test reports
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Tests
path: reports/tests-junit.xml
reporter: jest-junit
- name: Vite build (prod)
run: npm run build:prod
- name: Vite build (Roam Depot)
run: npm run build:roam
- name: Vite build (sandbox)
run: npm run build:sandbox
- name: Commit to repository
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "auto-commit: lint, test, build"
continue-on-error: true # See https://github.com/stefanzweifel/git-auto-commit-action/issues/204
- name: Storybook CI
id: chromatic
uses: chromaui/action@v1
if: ${{ !startsWith(github.ref_name, 'renovate/') }} || ${{ startsWith(github.ref_name, 'renovate/storybook') }}
with:
buildScriptName: "build-storybook"
exitOnceUploaded: true
onlyChanged: true
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
exitZeroOnChanges: true
- name: Storybook tests
if: ${{ !startsWith(github.ref_name, 'renovate/') }} || ${{ startsWith(github.ref_name, 'renovate/storybook') }}
run: npm run ci:test-storybook
env:
TARGET_URL: "${{ steps.chromatic.outputs.storybookUrl }}"
JEST_JUNIT_OUTPUT_DIR: "reports"
JEST_JUNIT_OUTPUT_NAME: "storybook-junit.xml"
- name: Upload test reports
uses: dorny/test-reporter@v1
if: ${{ !startsWith(github.ref_name, 'renovate/') }} || ${{ startsWith(github.ref_name, 'renovate/storybook') }}
with:
name: Storybook
path: reports/storybook-junit.xml
reporter: jest-junit
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
directory: ./coverage/
verbose: true
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}