-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (33 loc) · 976 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
test-frontend:
name: Frontend tests
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- name: Insert auth font awesome auth token
run: echo "@fortawesome:registry=https://npm.fontawesome.com/" > .npmrc && echo "//npm.fontawesome.com/:_authToken=${{ secrets.FONT_AWESOME_AUTH_TOKEN }}" >> .npmrc
- uses: actions/setup-node@v3
with:
node-version: '20.9.0'
cache: 'yarn'
- name: Install dependencies
run: yarn install --pure-lockfile
- name: TypeScript check
run: yarn ts:check
- name: Run unit tests
run: yarn test
- name: Lint TS/JS/Vue files
run: yarn lint:scripts
- name: Lint styles
run: yarn lint:styles
- name: Prettier check
run: yarn format:check
- name: Build storybook
run: yarn storybook:build