-
Notifications
You must be signed in to change notification settings - Fork 729
52 lines (48 loc) · 1.19 KB
/
continuous-integration.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
47
48
49
50
51
52
name: CI - Continuous Integration
on:
pull_request:
types: [opened, synchronize]
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 'v20.14.0'
- name: "Start: Deploy Static"
run: |
echo "===="
echo $VERCEL_PROJECT_ID
echo $VERCEL_TOKEN
echo "===="
yarn install && yarn build:static
npx vercel ./out --yes --token=$VERCEL_TOKEN
echo "deployed with success!"
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 'v20.14.0'
- name: "Start: Lint"
run: |
yarn install && yarn lint
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 'v20.14.0'
- name: "Start: Unit Testing"
run: |
yarn install && yarn test