twenty/.github/workflows/ci.yaml

31 lines
959 B
YAML
Raw Normal View History

2023-04-13 18:37:37 +03:00
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
2023-04-14 12:52:12 +03:00
env:
FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}
2023-04-13 18:37:37 +03:00
run: cd front && npm install
2023-04-20 12:44:47 +03:00
- name: Run linter
run: cd front && npm run lint
2023-04-13 18:37:37 +03:00
- name: Run tests and code coverage
run: cd front && npm run coverage-ci