mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-26 05:24:04 +03:00
96e3f2c7ea
* Remove node modules and package.json from root * Remove unused references to FontAwesome * Fix documentation link
29 lines
866 B
YAML
29 lines
866 B
YAML
name: continous-integration
|
|
on:
|
|
push:
|
|
jobs:
|
|
front-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: "18"
|
|
- name: Cache node modules
|
|
uses: actions/cache@v2
|
|
env:
|
|
cache-name: cache-node-modules
|
|
with:
|
|
path: ~/.npm
|
|
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-build-${{ env.cache-name }}-
|
|
${{ runner.os }}-build-
|
|
${{ runner.os }}-
|
|
- name: Install Dependencies
|
|
run: cd front && npm install
|
|
- name: Run linter
|
|
run: cd front && npm run lint
|
|
- name: Run tests and code coverage
|
|
run: cd front && npm run coverage-ci |