-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.02 KB
/
integration.yaml
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
name: CI
on:
pull_request:
branches:
['main', 'develop']
push:
branches:
['main', 'develop']
jobs:
continuos-integration:
# Sets a machine where the project gonna be forked
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
permissions:
checks: write
contents: write
steps:
# Creates an instance from our branch into Github's virtual machine
- name: Checkout
uses: actions/checkout@v4
# Installs and sets up a Node version into Github's virtual machine
- name: Installing Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Installing dependencies
run: npm install
# Runs linting when a PR is open or updated
- name: Linting
uses: wearerequired/lint-action@v2
with:
auto_fix: ${{ github.event_name == 'pull_request' }}
prettier: true
# To run tests
- name: Testing
run: npm test