Skip to content

Commit 0803e02

Browse files
authored
Merge pull request #8 from ArnauACR/development
ci(github): add GitHub Actions workflows
2 parents 4d06d17 + d76153e commit 0803e02

File tree

2 files changed

+34
-34
lines changed

2 files changed

+34
-34
lines changed

.github/workflows/lint.yml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
name: Lint Code Base
22
on:
3-
push:
4-
branches:
5-
- "**"
6-
- "!main"
7-
pull_request:
8-
branches:
9-
- "**"
3+
push:
4+
branches:
5+
- '**'
6+
- '!main'
7+
pull_request:
8+
branches:
9+
- '**'
1010

1111
jobs:
12-
lint:
13-
name: Linting
14-
runs-on: ubuntu-22.04
15-
steps:
16-
- name: Checkout code
17-
uses: actions/checkout@v4
12+
lint:
13+
name: Linting
14+
runs-on: ubuntu-22.04
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
1818

19-
- name: Set up Node.js
20-
uses: actions/setup-node@v4
21-
with:
22-
node-version: 18
23-
cache: "npm"
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 18
23+
cache: 'npm'
2424

25-
- name: Install dependencies
26-
run: npm ci
25+
- name: Install dependencies
26+
run: npm ci
2727

28-
- name: Run ESLint
29-
run: npm run lint
28+
- name: Run ESLint
29+
run: npm run lint
3030

31-
# - name: Run tests
32-
# run: npm run test:run
31+
# - name: Run tests
32+
# run: npm run test:run
3333

34-
- name: Cache node modules
35-
uses: actions/cache@v3
36-
with:
37-
path: |
38-
~/.npm
39-
node_modules
40-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
34+
- name: Cache node modules
35+
uses: actions/cache@v3
36+
with:
37+
path: |
38+
~/.npm
39+
node_modules
40+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: test
22

3-
on:
3+
on:
44
pull_request:
55
branches: [main]
66
types: [opened, synchronize]
77
push:
8-
branches: [main]
8+
branches: [main]
99
jobs:
1010
test:
1111
runs-on: ubuntu-22.04
@@ -32,4 +32,4 @@ jobs:
3232
- name: install dependencies
3333
run: npm install
3434
- name: execute
35-
run: npm run lint
35+
run: npm run lint

0 commit comments

Comments
 (0)