Skip to content

Commit 86e7678

Browse files
authored
chore(release): v1.5.5 (#143)
1 parent 63d65f6 commit 86e7678

File tree

4 files changed

+2499
-1878
lines changed

4 files changed

+2499
-1878
lines changed

.github/workflows/merge-to-main.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: 'Merge to main'
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
env:
8+
NPM_VERSION: latest
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
node-version: [14.x]
17+
18+
steps:
19+
- name: Get branch name (merge)
20+
if: github.event_name != 'pull_request'
21+
shell: bash
22+
run: echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/} | tr / -)" >> $GITHUB_ENV
23+
24+
- name: Get branch name (pull request)
25+
if: github.event_name == 'pull_request'
26+
shell: bash
27+
run: echo "BRANCH_NAME=$(echo ${GITHUB_HEAD_REF} | tr / -)" >> $GITHUB_ENV
28+
29+
- uses: actions/checkout@v2
30+
- name: Use Node.js ${{ matrix.node-version }}
31+
uses: actions/setup-node@v1
32+
with:
33+
node-version: ${{ matrix.node-version }}
34+
- name: Install latest npm
35+
run: |
36+
npm install -g npm@$NPM_VERSION &&
37+
npm --version &&
38+
npm list -g --depth 0
39+
- run: npm ci
40+
- run: npm run test-ci
41+
env:
42+
COVERALLS_SERVICE_NAME: GithubActions
43+
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
44+
COVERALLS_GIT_BRANCH: ${{ env.BRANCH_NAME }}

.github/workflows/pull-request.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: 'Pull Request'
2+
on:
3+
pull_request:
4+
types: [opened, reopened, synchronize]
5+
6+
env:
7+
NPM_VERSION: latest
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node: [14, 16, 18]
15+
name: Node ${{ matrix.node }}
16+
steps:
17+
- name: 'Checkout latest code'
18+
uses: actions/checkout@v3
19+
with:
20+
ref: ${{ github.event.pull_request.head.sha }}
21+
- name: Set up node
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version: ${{ matrix.node }}
25+
- name: Install latest npm
26+
run: |
27+
npm install -g npm@$NPM_VERSION &&
28+
npm --version &&
29+
npm list -g --depth 0
30+
- name: Install dependencies
31+
run: npm ci
32+
- name: Install dependencies
33+
run: npm ci
34+
- name: Run tests
35+
run: npm run test
36+
37+
lint:
38+
name: 'ESLint'
39+
runs-on: ubuntu-latest
40+
steps:
41+
- name: Checkout latest code
42+
uses: actions/checkout@v3
43+
with:
44+
ref: ${{ github.event.pull_request.head.sha }}
45+
- name: Set up node
46+
uses: actions/setup-node@v3
47+
with:
48+
node-version: '16'
49+
- name: Install dependencies
50+
run: npm ci
51+
- name: Run ESLint
52+
run: npm run lint

0 commit comments

Comments
 (0)