-
Notifications
You must be signed in to change notification settings - Fork 2
60 lines (49 loc) · 1.32 KB
/
nextjs.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
53
54
55
56
57
58
59
60
name: Dashboard Next.js Application
on:
push:
branches:
- main
- dev
paths:
- src/dashboard/**
pull_request:
branches:
- main
- dev
paths:
- src/dashboard/**
jobs:
build-app-editor:
runs-on: ubuntu-latest
env:
CI: true
working-directory: ./src/dashboard
strategy:
matrix:
node-version:
- "20.8.1"
steps:
- uses: actions/checkout@v4
- name: Extract Branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- name: Use NodeJs ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Update Browsers List
run: npx update-browserslist-db@latest
working-directory: ${{ env.working-directory }}
- name: Install Dependencies
run: npm install
working-directory: ${{ env.working-directory }}
- name: Linting
run: npm run lint
working-directory: ${{ env.working-directory }}
# - name: Unit Tests
# run: npm run test
# working-directory: ${{ env.working-directory }}
- name: Building
run: npm run build
working-directory: ${{ env.working-directory }}