Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node 16 in action, upgrade spire #252

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 7 additions & 28 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: [ main ]

env:
NODE_VERSION: 14
NODE_VERSION: 16

jobs:
tests:
Expand All @@ -21,18 +21,11 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
cache: 'yarn'
node-version: ${{ env.NODE_VERSION }}

- name: Cache node_modules
uses: actions/cache@v3
id: cache-nodemodules
with:
path: node_modules
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-nodemodules-${{ hashFiles('**/yarn.lock') }}

- name: Install dependencies
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile --non-interactive
run: yarn install --frozen-lockfile --immutable

- name: Unit tests
run: yarn test --coverage
Expand All @@ -54,18 +47,11 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
cache: 'yarn'
node-version: ${{ env.NODE_VERSION }}

- name: Cache node_modules
uses: actions/cache@v3
id: cache-nodemodules
with:
path: node_modules
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-nodemodules-${{ hashFiles('**/yarn.lock') }}

- name: Install dependencies
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile --non-interactive
run: yarn install --frozen-lockfile --immutable

- name: Lint
run: yarn lint
Expand All @@ -85,18 +71,11 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
cache: 'yarn'
node-version: ${{ env.NODE_VERSION }}

- name: Cache node_modules
uses: actions/cache@v3
id: cache-nodemodules
with:
path: node_modules
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-nodemodules-${{ hashFiles('**/yarn.lock') }}

- name: Install dependencies
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile --non-interactive
run: yarn install --frozen-lockfile --immutable

- name: Release
run: yarn release
Expand Down
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,14 @@
"enzyme-to-json": "3.6.2",
"highlight.js": "11.6.0",
"jest-snapshot": "29.3.1",
"jsdom": "^20.0.2",
"jsdom-global": "^3.0.2",
"npm-run-all": "4.1.5",
"react": "16.14.0",
"react-dom": "16.14.0",
"rimraf": "3.0.2",
"spire": "3.2.3",
"spire-plugin-semantic-release": "3.2.3",
"spire": "5.0.4",
"spire-plugin-semantic-release": "5.0.1",
"typescript": "4.8.4"
},
"dependencies": {
Expand All @@ -81,7 +83,8 @@
],
"snapshotSerializers": [
"enzyme-to-json/serializer"
]
],
"testEnvironment": "jsdom"
},
"spire": {
"extends": [
Expand Down
Loading