-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (31 loc) · 1002 Bytes
/
main.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
name: CI/CD
# Controls when the action will run.
on: push
# workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
test:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
# runs npm i inside the root directory
- name: npm i root
run: |
cd $GITHUB_WORKSPACE
npm i
# builds the library
- name: build package
run: |
cd $GITHUB_WORKSPACE
npm run build
# runs linting
- name: Lint
run: |
cd $GITHUB_WORKSPACE
npm run lint
# runs tests
- name: Test
run: |
cd $GITHUB_WORKSPACE
npm run test