generated from aicore/template-nodejs
-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (37 loc) · 952 Bytes
/
build_verify.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
name: Build verification
on:
push:
branches: [ main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
jobs:
build-tasks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shogo82148/actions-setup-mysql@v1
with:
mysql-version: '8.0'
- name: install mysql
run: mysql -uroot -h127.0.0.1 -e 'SELECT version()'
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Npm Install
run: |
npm install
- name: eslint using npm run eslint
run: |
npm run lint
- name: building build
run: |
npm run build
- name: Unit tests with coverage
run: |
npm run cover:unit
- name: Running Integration tests
run: |
npm run test:integ