Skip to content

Commit b1d22d5

Browse files
authored
Merge pull request #98 from Visual-Regression-Tracker/semantic-release
BREAKING CHANGE: `browserType` replaced with `browserName`.
2 parents 9fc513a + b110de9 commit b1d22d5

File tree

5 files changed

+4232
-130
lines changed

5 files changed

+4232
-130
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [master]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Setup Node.js environment
15+
uses: actions/setup-node@v2
16+
17+
- name: Install npm dependencies
18+
run: npm ci
19+
20+
- name: Unit tests
21+
run: npm run test:cov
22+
23+
- name: Codacy Coverage Reporter
24+
uses: codacy/[email protected]
25+
with:
26+
project-token: ${{ secrets.CODACY_TOKEN }}

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
release:
8+
name: Release
9+
runs-on: ubuntu-18.04
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
16+
- name: Setup Node.js environment
17+
uses: actions/setup-node@v2
18+
19+
- name: Install dependencies
20+
run: npm ci
21+
22+
- name: Build
23+
run: npm run build
24+
25+
- name: Unit tests
26+
run: npm run test
27+
28+
- name: Release
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
32+
run: npx semantic-release

.github/workflows/workflow.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)