Merge pull request #9095 from marmelab/RecordRepresentation #220
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: "Test - action" | |
on: | |
push: | |
paths-ignore: | |
- 'docs/**' | |
branches: | |
- master | |
- next | |
pull_request: | |
paths-ignore: | |
- 'docs/**' | |
jobs: | |
typecheck: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Use Node.js LTS | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '16.x' | |
- uses: bahmutov/npm-install@v1 | |
with: | |
install-command: yarn --immutable | |
- name: Lint | |
run: make lint | |
- name: Build | |
run: make build | |
unit-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Use Node.js LTS | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '16.x' | |
- uses: bahmutov/npm-install@v1 | |
with: | |
install-command: yarn --immutable | |
- name: Unit Tests | |
run: make test-unit | |
env: | |
CI: true | |
e2e-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Use Node.js LTS | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '16.x' | |
- uses: bahmutov/npm-install@v1 | |
with: | |
install-command: yarn --immutable | |
- name: e2e Tests | |
run: make test-e2e | |
env: | |
CI: true | |
e-commerce: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Use Node.js LTS | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '16.x' | |
- uses: bahmutov/npm-install@v1 | |
with: | |
install-command: yarn --immutable | |
- name: Build | |
run: make build | |
- name: Build e-commerce | |
run: make build-demo | |
env: | |
# Needed as workaround for Vite https://github.com/vitejs/vite/issues/2433#issuecomment-831399876 | |
# value = (your memory in GiB, 6.51 for GH Actions) * 1024 - 512 | |
NODE_OPTIONS: '--max-old-space-size=6163' | |
crm: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Use Node.js LTS | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '16.x' | |
- uses: bahmutov/npm-install@v1 | |
with: | |
install-command: yarn --immutable | |
- name: Build | |
run: make build | |
- name: Build crm | |
run: make build-crm | |