@geolonia/embed 2.1.3 → 2.1.5

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.
@@ -41,39 +41,11 @@ jobs:
41
41
  dist/
42
42
  docs/
43
43
 
44
- snapshot-test:
45
- runs-on: ubuntu-latest
46
- timeout-minutes: 5
47
- steps:
48
- - uses: actions/checkout@v2
49
- - uses: actions/setup-node@v1
50
- with:
51
- node-version: '14.x'
52
- - name: Cache node_modules
53
- uses: actions/cache@v2
54
- with:
55
- path: node_modules
56
- key: modules-cache-v1-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
57
- - run: yarn install
58
- - run: "yarn build"
59
- - name: Build and push to local registry
60
- uses: docker/build-push-action@v2
61
- with:
62
- context: .
63
- push: false
64
- tags: geolonia/embed
65
- - run: |
66
- docker run --rm \
67
- -v $(pwd)/snapshots:/app/snapshots \
68
- -v $(pwd)/dist:/app/dist \
69
- geolonia/embed
70
-
71
44
  gh-pages:
72
45
  name: 'Host with GitHub Pages'
73
46
  runs-on: ubuntu-latest
74
47
  needs:
75
48
  - build
76
- - snapshot-test
77
49
  if: ${{ github.ref == 'refs/heads/master' }}
78
50
  steps:
79
51
  - uses: actions/checkout@v2
@@ -103,7 +75,6 @@ jobs:
103
75
  runs-on: ubuntu-latest
104
76
  needs:
105
77
  - build
106
- - snapshot-test
107
78
  if: startsWith(github.ref, 'refs/tags/v')
108
79
  steps:
109
80
  - uses: actions/checkout@v2
package/README.md CHANGED
@@ -73,29 +73,3 @@ $ vi .envrc
73
73
  $ npm run build
74
74
  $ docker build . -t geolonia/embed
75
75
  ```
76
-
77
- ### run snapshot test with Docker
78
-
79
- ```shell
80
- $ npm run build
81
- # Run snapshot test
82
- $ docker run --rm \
83
- -v $(pwd)/snapshots:/app/snapshots \
84
- -v $(pwd)/dist:/app/dist \
85
- geolonia/embed
86
- # Update the snapshot
87
- $ docker run --rm \
88
- -v $(pwd)/snapshots:/app/snapshots \
89
- -v $(pwd)/dist:/app/dist \
90
- -e UPDATE_SNAPSHOT=true \
91
- geolonia/embed
92
- # check diff on your eyes
93
- $ open snapshots
94
- ```
95
-
96
- ### run snapshot test locally
97
-
98
- ```shell
99
- $ npm run build
100
- $ npm run test:snapshot
101
- ```