jest-webextension-mock 3.8.0 → 3.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/publish.yml +20 -20
- package/.github/workflows/push.yml +20 -21
- package/package.json +1 -1
|
@@ -10,23 +10,23 @@ jobs:
|
|
|
10
10
|
name: Publish
|
|
11
11
|
runs-on: ubuntu-latest
|
|
12
12
|
steps:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
13
|
+
- uses: actions/checkout@v2
|
|
14
|
+
- name: Get yarn cache directory path
|
|
15
|
+
id: yarn-cache-dir-path
|
|
16
|
+
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
|
|
17
|
+
- uses: actions/cache@v2
|
|
18
|
+
id: yarn-cache
|
|
19
|
+
with:
|
|
20
|
+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
21
|
+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
22
|
+
restore-keys: ${{ runner.os }}-yarn-
|
|
23
|
+
- name: Yarn Install
|
|
24
|
+
run: yarn install
|
|
25
|
+
- name: Yarn Test
|
|
26
|
+
run: yarn test
|
|
27
|
+
- name: Publish
|
|
28
|
+
if: github.ref == 'refs/heads/main'
|
|
29
|
+
uses: mikeal/merge-release@master
|
|
30
|
+
env:
|
|
31
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
32
|
+
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
|
@@ -2,34 +2,33 @@ name: Build and Test
|
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
|
-
branches: [
|
|
5
|
+
branches: [main]
|
|
6
6
|
pull_request:
|
|
7
|
-
branches: [
|
|
7
|
+
branches: [main]
|
|
8
8
|
|
|
9
9
|
jobs:
|
|
10
10
|
build:
|
|
11
|
-
|
|
12
11
|
runs-on: ubuntu-latest
|
|
13
12
|
|
|
14
13
|
strategy:
|
|
15
14
|
matrix:
|
|
16
|
-
node-version: [
|
|
15
|
+
node-version: [14.x, 16.x, 18.x]
|
|
17
16
|
|
|
18
17
|
steps:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
18
|
+
- uses: actions/checkout@v2
|
|
19
|
+
- name: Get yarn cache directory path
|
|
20
|
+
id: yarn-cache-dir-path
|
|
21
|
+
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
|
|
22
|
+
- uses: actions/cache@v2
|
|
23
|
+
id: yarn-cache
|
|
24
|
+
with:
|
|
25
|
+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
26
|
+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
27
|
+
restore-keys: ${{ runner.os }}-yarn-
|
|
28
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
29
|
+
uses: actions/setup-node@v1
|
|
30
|
+
with:
|
|
31
|
+
node-version: ${{ matrix.node-version }}
|
|
32
|
+
- run: yarn install
|
|
33
|
+
- run: yarn test
|
|
34
|
+
- uses: codecov/codecov-action@v1
|