Skip to content

Commit b551e48

Browse files
committed
fix: update github workflows
1 parent 27a4509 commit b551e48

2 files changed

Lines changed: 34 additions & 1 deletion

File tree

.github/workflows/default.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
3+
on: push
4+
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout repository
10+
uses: actions/checkout@v3
11+
- name: Install node
12+
uses: actions/setup-node@v3
13+
- name: Install dependencies
14+
run: npm ci
15+
- name: Lint
16+
run: npm run lint
17+
18+
test:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v3
23+
- name: Install node
24+
uses: actions/setup-node@v3
25+
- name: Install dependencies
26+
run: npm ci
27+
- name: Test
28+
env:
29+
IPDATA_API_KEY: ${{ secrets.IPDATA_API_KEY }}
30+
run: npm test
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: CI
22

3-
on: [push]
3+
on:
4+
push:
5+
tags:
6+
- '*'
47

58
jobs:
69
lint:

0 commit comments

Comments
 (0)