-
Notifications
You must be signed in to change notification settings - Fork 146
46 lines (43 loc) · 1.18 KB
/
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
37
38
39
40
41
42
43
44
45
46
name: Continous integeration
on:
pull_request:
types: [assigned, opened, reopened, synchronize, edited]
push:
branches:
- feat/inspire/*
- develop
- main
- master
jobs:
CI-Deployment:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: NodeJS
uses: actions/setup-node@v2
with:
node-version: 14
- uses: actions/cache@v2
id: yarn-cache
with:
path: "**/node_modules"
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- name: Install npm dependencies
run: yarn
- name: checking the linting
run: yarn lint
- name: Check Testing
run: yarn test
- name: Build
run: yarn build
- name: Deployment
id: vercel-action
uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
vercel-org-id: ${{ secrets.ORG_ID}} #Required
vercel-project-id: ${{ secrets.PROJECT_ID}} #Required
working-directory: ./
- name: Preview URL
run: echo ${{ steps.vercel-action.outputs.preview-url }}